diff options
author | Daniel Mack <zonque@gmail.com> | 2013-08-10 12:52:17 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-14 04:25:15 -0400 |
commit | 1ac0e845c10685f3643fe81a08c13be4b9416bce (patch) | |
tree | e919e05b799011a2027faa84a908b7c62f5ec97a | |
parent | 638a542cc450e5dca52c82437d746548c0bcbd8b (diff) |
dma: mmp_pdma: fix maximum transfer length
There's no reason for limiting the maximum transfer length to 0x1000.
Take the actual bit mask instead; the PDMA is able to transfer chunks of
up to SZ_8K - 1.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/mmp_pdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index 3c2ad72a1621..eb75d4b4bafe 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c | |||
@@ -71,7 +71,7 @@ | |||
71 | #define DCMD_LENGTH 0x01fff /* length mask (max = 8K - 1) */ | 71 | #define DCMD_LENGTH 0x01fff /* length mask (max = 8K - 1) */ |
72 | 72 | ||
73 | #define PDMA_ALIGNMENT 3 | 73 | #define PDMA_ALIGNMENT 3 |
74 | #define PDMA_MAX_DESC_BYTES 0x1000 | 74 | #define PDMA_MAX_DESC_BYTES DCMD_LENGTH |
75 | 75 | ||
76 | struct mmp_pdma_desc_hw { | 76 | struct mmp_pdma_desc_hw { |
77 | u32 ddadr; /* Points to the next descriptor + flags */ | 77 | u32 ddadr; /* Points to the next descriptor + flags */ |