/* qedma3_stop - stops dma on the channel passed @base: base address of edma @cfg: pinter to struct edma3_channel_config which was passed to qedma3_start when you started qdma channel  */
void qedma3_stop(u32 base, struct edma3_channel_config *cfg)
/* qedma3_stop - stops dma on the channel passed @base: base address of edma @cfg: pinter to struct edma3_channel_config which was passed to qedma3_start when you started qdma channel  */
void qedma3_stop(u32 base, struct edma3_channel_config *cfg)
{
	__raw_writel(1 << cfg->chnum, base + EDMA3_QEECR);
	if (cfg->complete_code < 32)
		__raw_writel(1 << cfg->complete_code, base + EDMA3_ICR);
	else
		__raw_writel(1 << cfg->complete_code, base + EDMA3_ICRH);
	__raw_writel(1 << cfg->chnum, base + EDMA3_QSECR);
	__raw_writel(1 << cfg->chnum, base + EDMA3_QEMCR);
	__raw_writel(0, base + EDMA3_QCHMAP(cfg->chnum));
}