commit | 69dc14b51c1aad9d82afd8f96bf4e4835089bffc | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@st.com> | Mon Apr 18 14:54:56 2011 +0530 |
committer | Vinod Koul <vinod.koul@intel.com> | Fri May 13 19:40:00 2011 +0530 |
tree | 494e852ee6531c5e91720246baf53623e45e4112 | |
parent | abf53902dcc6d44d2e06b09817fa67857aa686fe [diff] |
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>