diff options
author | Rafal Prylowski <prylowski@metasoft.pl> | 2011-11-26 05:54:07 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2011-12-04 21:44:57 -0500 |
commit | b62cfc5e0e59d1e0192105144b724b0c332720a0 (patch) | |
tree | b66c73f97de0b6ad0f5331960486d59e7cfbb1ca /drivers/dma | |
parent | 02f88be9488a3d831f073c1161b1e5feacb9d3ec (diff) |
dma/ep93xx_dma: fix initialization of M2M control register
Setting the flags in case of IDE didn't have any effect since the control
register is overwritten few lines below. So move these to be after the control
register is initialized.
Signed-off-by: Rafal Prylowski <prylowski@metasoft.pl>
Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ep93xx_dma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c index 009851b2aeea..526a7424f6a9 100644 --- a/drivers/dma/ep93xx_dma.c +++ b/drivers/dma/ep93xx_dma.c | |||
@@ -459,10 +459,6 @@ static int m2m_hw_setup(struct ep93xx_dma_chan *edmac) | |||
459 | * This IDE part is totally untested. Values below are taken | 459 | * This IDE part is totally untested. Values below are taken |
460 | * from the EP93xx Users's Guide and might not be correct. | 460 | * from the EP93xx Users's Guide and might not be correct. |
461 | */ | 461 | */ |
462 | control |= M2M_CONTROL_NO_HDSK; | ||
463 | control |= M2M_CONTROL_RSS_IDE; | ||
464 | control |= M2M_CONTROL_PW_16; | ||
465 | |||
466 | if (data->direction == DMA_MEM_TO_DEV) { | 462 | if (data->direction == DMA_MEM_TO_DEV) { |
467 | /* Worst case from the UG */ | 463 | /* Worst case from the UG */ |
468 | control = (3 << M2M_CONTROL_PWSC_SHIFT); | 464 | control = (3 << M2M_CONTROL_PWSC_SHIFT); |
@@ -473,6 +469,10 @@ static int m2m_hw_setup(struct ep93xx_dma_chan *edmac) | |||
473 | control |= M2M_CONTROL_SAH; | 469 | control |= M2M_CONTROL_SAH; |
474 | control |= M2M_CONTROL_TM_RX; | 470 | control |= M2M_CONTROL_TM_RX; |
475 | } | 471 | } |
472 | |||
473 | control |= M2M_CONTROL_NO_HDSK; | ||
474 | control |= M2M_CONTROL_RSS_IDE; | ||
475 | control |= M2M_CONTROL_PW_16; | ||
476 | break; | 476 | break; |
477 | 477 | ||
478 | default: | 478 | default: |