]> git.karo-electronics.de Git - mv-sheeva.git/commit
dmaengine/dw_dmac fix: dwc_scan_descriptors must compare first desc address also...
authorViresh Kumar <viresh.kumar@st.com>
Thu, 24 Mar 2011 06:02:15 +0000 (11:32 +0530)
committerVinod Koul <vinod.koul@intel.com>
Thu, 31 Mar 2011 05:37:31 +0000 (11:07 +0530)
commit84adccfb8cd2a6b8237da6752668ba25cd90c20b
tree34f187fb5acf0214b53647384861e51c87a636c4
parent3ea205c449d2b5996d0256aa8b2894f7aea228a2
dmaengine/dw_dmac fix: dwc_scan_descriptors must compare first desc address also with llp

dwc_scan_descriptors scans all descriptors from active_list in case transfer is
not completed.  It compares first_desc->lli.llp, and then all childrens of its
tx_list. But it doesn't compare its own address, i.e. first_desc->txd.phys, as
this is what we have initially programmed into the controller register. So this
causes dma to stop and finish a transfer, which was never started. And thus
fail.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw_dmac.c