/* The software that is using the DMA channel must register to receive its interrupts and, when they arrive, must call this function to clear them.  */
static int mxs_dma_ack_irq(int channel)
/* The software that is using the DMA channel must register to receive its interrupts and, when they arrive, must call this function to clear them.  */
static int mxs_dma_ack_irq(int channel)
{
	struct mxs_apbh_regs *apbh_regs =
		(struct mxs_apbh_regs *)MXS_APBH_BASE;
	int ret;
	ret = mxs_dma_validate_chan(channel);
	if (ret)
		return ret;
	writel(1 << channel, &apbh_regs->hw_apbh_ctrl1_clr);
	writel(1 << channel, &apbh_regs->hw_apbh_ctrl2_clr);
	return 0;
}