summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/hardware/iop3xx-adma.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-11-12 22:48:54 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-12 22:48:54 +0300
commit4416662ece4e88aca687b28d7c059336b47478ba (patch)
tree6059210bf94c052f0450044fe48ddce017d3660d /arch/arm/include/asm/hardware/iop3xx-adma.h
parent3edac25f2e8ac8c2a84904c140e1aeb434e73e75 (diff)
parent06190d8415219d9eef7d8f04b52a109e34575a76 (diff)
downloadlinux-4416662ece4e88aca687b28d7c059336b47478ba.tar.xz
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: dmaengine: struct device - replace bus_id with dev_name(), dev_set_name() iop-adma: use iop_paranoia() for debug BUG_ONs iop-adma: add a dummy read to flush next descriptor update
Diffstat (limited to 'arch/arm/include/asm/hardware/iop3xx-adma.h')
-rw-r--r--arch/arm/include/asm/hardware/iop3xx-adma.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/include/asm/hardware/iop3xx-adma.h b/arch/arm/include/asm/hardware/iop3xx-adma.h
index 87bff09633aa..83e6ba338e2c 100644
--- a/arch/arm/include/asm/hardware/iop3xx-adma.h
+++ b/arch/arm/include/asm/hardware/iop3xx-adma.h
@@ -730,7 +730,8 @@ static inline void iop_desc_set_next_desc(struct iop_adma_desc_slot *desc,
{
/* hw_desc->next_desc is the same location for all channels */
union iop3xx_desc hw_desc = { .ptr = desc->hw_desc, };
- BUG_ON(hw_desc.dma->next_desc);
+
+ iop_paranoia(hw_desc.dma->next_desc);
hw_desc.dma->next_desc = next_desc_addr;
}
@@ -760,7 +761,7 @@ static inline int iop_desc_get_zero_result(struct iop_adma_desc_slot *desc)
struct iop3xx_desc_aau *hw_desc = desc->hw_desc;
struct iop3xx_aau_desc_ctrl desc_ctrl = hw_desc->desc_ctrl_field;
- BUG_ON(!(desc_ctrl.tx_complete && desc_ctrl.zero_result_en));
+ iop_paranoia(!(desc_ctrl.tx_complete && desc_ctrl.zero_result_en));
return desc_ctrl.zero_result_err;
}