diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-11-11 23:12:33 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-11-11 23:12:33 +0300 |
commit | 65e503814dec83c7b2ac955e75919d009109c919 (patch) | |
tree | 6cd01ca32ae269760d864d3c1bae94fdb0e95a45 /arch/arm/include/asm/hardware/iop_adma.h | |
parent | 137cb55c6dcd56cb367285adaf15f808a2a9fec7 (diff) | |
download | linux-65e503814dec83c7b2ac955e75919d009109c919.tar.xz |
iop-adma: use iop_paranoia() for debug BUG_ONs
Now that the critical read back to flush the next descriptor address is
fixed we can downgrade some BUG_ONs that need only be enabled when testing
changes to the driver.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'arch/arm/include/asm/hardware/iop_adma.h')
-rw-r--r-- | arch/arm/include/asm/hardware/iop_adma.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/hardware/iop_adma.h b/arch/arm/include/asm/hardware/iop_adma.h index cb7e3611bcba..385c6e8cbbd2 100644 --- a/arch/arm/include/asm/hardware/iop_adma.h +++ b/arch/arm/include/asm/hardware/iop_adma.h @@ -23,6 +23,12 @@ #define IOP_ADMA_SLOT_SIZE 32 #define IOP_ADMA_THRESHOLD 4 +#ifdef DEBUG +#define IOP_PARANOIA 1 +#else +#define IOP_PARANOIA 0 +#endif +#define iop_paranoia(x) BUG_ON(IOP_PARANOIA && (x)) /** * struct iop_adma_device - internal representation of an ADMA device |