From: Ludovic Desroches Date: Thu, 18 Apr 2013 07:52:59 +0000 (+0200) Subject: dmaengine: at_hdmac: fix race condition in atc_advance_work() X-Git-Tag: v3.9-rc8~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d202f05158442396033f416df376f8ece1f563df;p=pandora-kernel.git dmaengine: at_hdmac: fix race condition in atc_advance_work() The BUG_ON() directive is triggered probably due to a latency modification following inclusion of commit c10d73671ad3 ("softirq: reduce latencies"). This condition has not been met before 3.9-rc1 and doesn't trigger without this patch. We now make sure that DMA channel is idle before calling atc_complete_all() which makes the BUG_ON() "protection" useless. Signed-off-by: Ludovic Desroches Signed-off-by: Nicolas Ferre Acked-by: Vinod Koul Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed