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)
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>

No differences found