mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
dw_dmac: Adding support for 64 bit access width for memcpy xfers
Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
569432efa7
commit
a02274564d
1 changed files with 3 additions and 1 deletions
|
@ -583,7 +583,9 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
|
|||
* We can be a lot more clever here, but this should take care
|
||||
* of the most common optimization.
|
||||
*/
|
||||
if (!((src | dest | len) & 3))
|
||||
if (!((src | dest | len) & 7))
|
||||
src_width = dst_width = 3;
|
||||
else if (!((src | dest | len) & 3))
|
||||
src_width = dst_width = 2;
|
||||
else if (!((src | dest | len) & 1))
|
||||
src_width = dst_width = 1;
|
||||
|
|
Loading…
Reference in a new issue