dmaengine/dw_dmac: Divide one sg to many desc, if sg len is greater than DWC_MAX_COUNT
authorViresh Kumar <viresh.kumar@st.com>
Mon, 18 Apr 2011 09:24:56 +0000 (14:54 +0530)
committerVinod Koul <vinod.koul@intel.com>
Fri, 13 May 2011 14:10:00 +0000 (19:40 +0530)
commit69dc14b51c1aad9d82afd8f96bf4e4835089bffc
tree494e852ee6531c5e91720246baf53623e45e4112
parentabf53902dcc6d44d2e06b09817fa67857aa686fe
dmaengine/dw_dmac: Divide one sg to many desc, if sg len is greater than DWC_MAX_COUNT

If len passed in sg for slave_sg transfers is greater than DWC_MAX_COUNT, then
driver programmes controller incorrectly.  This patch adds code to handle this
situation by allocation more than one desc for same sg.

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