summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2011-03-03 15:47:25 +0530
committerVinod Koul <vinod.koul@intel.com>2011-03-07 01:12:28 +0530
commite51dc53b8c7fa2d9ac4ef8f317f5dfe07a79e65a (patch)
treededf52405560df64c96b2e33b7d55ac1f3df3b39
parentee66509d7f354eecb45ac99f21ea6aa8650dea7e (diff)
downloadop-kernel-dev-e51dc53b8c7fa2d9ac4ef8f317f5dfe07a79e65a.zip
op-kernel-dev-e51dc53b8c7fa2d9ac4ef8f317f5dfe07a79e65a.tar.gz
dw_dmac: Setting Default Burst length for transfers as 16.
This patch sets default Burst length for all transfer to 16. This will enhance performance when user doesn't have any chan->private data. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/dw_dmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 90ea08a..9c25c7d 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -36,8 +36,8 @@
struct dw_dma_slave *__slave = (private); \
int dms = __slave ? __slave->dst_master : 0; \
int sms = __slave ? __slave->src_master : 1; \
- u8 smsize = __slave ? __slave->src_msize : 0; \
- u8 dmsize = __slave ? __slave->dst_msize : 0; \
+ u8 smsize = __slave ? __slave->src_msize : DW_DMA_MSIZE_16; \
+ u8 dmsize = __slave ? __slave->dst_msize : DW_DMA_MSIZE_16; \
\
(DWC_CTLL_DST_MSIZE(dmsize) \
| DWC_CTLL_SRC_MSIZE(smsize) \
OpenPOWER on IntegriCloud