Skip to content

Commit be1055b

Browse files
CL WangCharlesWu465
authored andcommitted
dmaengine: andes: atcdmac300: Remove transfer width restrictions for DMA memcpy
The transfer width restriction is no longer necessary, as the ATCDMAC300 DMA engine supports transfer widths of 1, 2, 4, 8, and 16 bytes when accessing the HVM. Signed-off-by: CL Wang <[email protected]>
1 parent 93e2631 commit be1055b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/dma/atcdmac300.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -488,19 +488,11 @@ static inline unsigned int xfer_width(struct v5_dma *v5dma,
488488
{
489489
unsigned int width;
490490

491-
/*
492-
* To prevent HVM DMA transfer from getting stuck,
493-
* limit the transfer width to word transfer.
494-
*/
495-
# if 0
496491
if (!((src | dst | len) & 15))
497492
width = 4;
498493
else if (!((src | dst | len) & 7))
499494
width = 3;
500495
else if (!((src | dst | len) & 3))
501-
#else
502-
if (!((src | dst | len) & 3))
503-
#endif
504496
width = 2;
505497
else if (!((src | dst | len) & 1))
506498
width = 1;

0 commit comments

Comments
 (0)