diff options
author | Vinod Koul <vinod.koul@linux.intel.com> | 2011-11-17 04:24:38 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2011-11-17 04:24:57 -0500 |
commit | e0d23ef29ed637dc6bd739f590985746d9ad9caa (patch) | |
tree | c5b5856dc88582697997bb10ccacad6fc2535465 /drivers/spi/spi-pl022.c | |
parent | ca7fe2db892dcf91b2c72ee352eda4ff867903a7 (diff) | |
parent | 55ba4e5ed4ac57b60fe56acfd324f6a87123cc34 (diff) |
Merge branch 'dma_slave_direction' into next_test_dirn
resolved conflicts:
drivers/media/video/mx3_camera.c
Diffstat (limited to 'drivers/spi/spi-pl022.c')
-rw-r--r-- | drivers/spi/spi-pl022.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index f103e470cb6..95400fa99d9 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -904,11 +904,11 @@ static int configure_dma(struct pl022 *pl022) | |||
904 | { | 904 | { |
905 | struct dma_slave_config rx_conf = { | 905 | struct dma_slave_config rx_conf = { |
906 | .src_addr = SSP_DR(pl022->phybase), | 906 | .src_addr = SSP_DR(pl022->phybase), |
907 | .direction = DMA_FROM_DEVICE, | 907 | .direction = DMA_DEV_TO_MEM, |
908 | }; | 908 | }; |
909 | struct dma_slave_config tx_conf = { | 909 | struct dma_slave_config tx_conf = { |
910 | .dst_addr = SSP_DR(pl022->phybase), | 910 | .dst_addr = SSP_DR(pl022->phybase), |
911 | .direction = DMA_TO_DEVICE, | 911 | .direction = DMA_MEM_TO_DEV, |
912 | }; | 912 | }; |
913 | unsigned int pages; | 913 | unsigned int pages; |
914 | int ret; | 914 | int ret; |
@@ -1045,7 +1045,7 @@ static int configure_dma(struct pl022 *pl022) | |||
1045 | rxdesc = rxchan->device->device_prep_slave_sg(rxchan, | 1045 | rxdesc = rxchan->device->device_prep_slave_sg(rxchan, |
1046 | pl022->sgt_rx.sgl, | 1046 | pl022->sgt_rx.sgl, |
1047 | rx_sglen, | 1047 | rx_sglen, |
1048 | DMA_FROM_DEVICE, | 1048 | DMA_DEV_TO_MEM, |
1049 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 1049 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
1050 | if (!rxdesc) | 1050 | if (!rxdesc) |
1051 | goto err_rxdesc; | 1051 | goto err_rxdesc; |
@@ -1053,7 +1053,7 @@ static int configure_dma(struct pl022 *pl022) | |||
1053 | txdesc = txchan->device->device_prep_slave_sg(txchan, | 1053 | txdesc = txchan->device->device_prep_slave_sg(txchan, |
1054 | pl022->sgt_tx.sgl, | 1054 | pl022->sgt_tx.sgl, |
1055 | tx_sglen, | 1055 | tx_sglen, |
1056 | DMA_TO_DEVICE, | 1056 | DMA_MEM_TO_DEV, |
1057 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 1057 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
1058 | if (!txdesc) | 1058 | if (!txdesc) |
1059 | goto err_txdesc; | 1059 | goto err_txdesc; |