]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dma: mmp_pdma: fix maximum transfer length
authorDaniel Mack <zonque@gmail.com>
Sat, 10 Aug 2013 16:52:17 +0000 (18:52 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Aug 2013 08:25:15 +0000 (13:55 +0530)
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>
drivers/dma/mmp_pdma.c

index 3c2ad72a1621392a3c51e969a8d9dc4b9a6f9e17..eb75d4b4bafe1e846250eb7e594366894cbb4dcb 100644 (file)
@@ -71,7 +71,7 @@
 #define DCMD_LENGTH    0x01fff         /* length mask (max = 8K - 1) */
 
 #define PDMA_ALIGNMENT         3
-#define PDMA_MAX_DESC_BYTES    0x1000
+#define PDMA_MAX_DESC_BYTES    DCMD_LENGTH
 
 struct mmp_pdma_desc_hw {
        u32 ddadr;      /* Points to the next descriptor + flags */