aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@linux.intel.com>2011-11-17 04:24:38 -0500
committerVinod Koul <vinod.koul@linux.intel.com>2011-11-17 04:24:57 -0500
commite0d23ef29ed637dc6bd739f590985746d9ad9caa (patch)
treec5b5856dc88582697997bb10ccacad6fc2535465 /drivers/usb
parentca7fe2db892dcf91b2c72ee352eda4ff867903a7 (diff)
parent55ba4e5ed4ac57b60fe56acfd324f6a87123cc34 (diff)
Merge branch 'dma_slave_direction' into next_test_dirn
resolved conflicts: drivers/media/video/mx3_camera.c
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/ux500_dma.c4
-rw-r--r--drivers/usb/renesas_usbhs/fifo.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c
index ef4333f4bbe0..f8fd0ddee14a 100644
--- a/drivers/usb/musb/ux500_dma.c
+++ b/drivers/usb/musb/ux500_dma.c
@@ -112,7 +112,7 @@ static bool ux500_configure_channel(struct dma_channel *channel,
112 struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; 112 struct musb_hw_ep *hw_ep = ux500_channel->hw_ep;
113 struct dma_chan *dma_chan = ux500_channel->dma_chan; 113 struct dma_chan *dma_chan = ux500_channel->dma_chan;
114 struct dma_async_tx_descriptor *dma_desc; 114 struct dma_async_tx_descriptor *dma_desc;
115 enum dma_data_direction direction; 115 enum dma_transfer_direction direction;
116 struct scatterlist sg; 116 struct scatterlist sg;
117 struct dma_slave_config slave_conf; 117 struct dma_slave_config slave_conf;
118 enum dma_slave_buswidth addr_width; 118 enum dma_slave_buswidth addr_width;
@@ -132,7 +132,7 @@ static bool ux500_configure_channel(struct dma_channel *channel,
132 sg_dma_address(&sg) = dma_addr; 132 sg_dma_address(&sg) = dma_addr;
133 sg_dma_len(&sg) = len; 133 sg_dma_len(&sg) = len;
134 134
135 direction = ux500_channel->is_tx ? DMA_TO_DEVICE : DMA_FROM_DEVICE; 135 direction = ux500_channel->is_tx ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM;
136 addr_width = (len & 0x3) ? DMA_SLAVE_BUSWIDTH_1_BYTE : 136 addr_width = (len & 0x3) ? DMA_SLAVE_BUSWIDTH_1_BYTE :
137 DMA_SLAVE_BUSWIDTH_4_BYTES; 137 DMA_SLAVE_BUSWIDTH_4_BYTES;
138 138
diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c
index 8da685e796d1..e2f22d4b8c3a 100644
--- a/drivers/usb/renesas_usbhs/fifo.c
+++ b/drivers/usb/renesas_usbhs/fifo.c
@@ -765,10 +765,10 @@ static void usbhsf_dma_prepare_tasklet(unsigned long data)
765 struct dma_async_tx_descriptor *desc; 765 struct dma_async_tx_descriptor *desc;
766 struct dma_chan *chan = usbhsf_dma_chan_get(fifo, pkt); 766 struct dma_chan *chan = usbhsf_dma_chan_get(fifo, pkt);
767 struct device *dev = usbhs_priv_to_dev(priv); 767 struct device *dev = usbhs_priv_to_dev(priv);
768 enum dma_data_direction dir; 768 enum dma_transfer_direction dir;
769 dma_cookie_t cookie; 769 dma_cookie_t cookie;
770 770
771 dir = usbhs_pipe_is_dir_in(pipe) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; 771 dir = usbhs_pipe_is_dir_in(pipe) ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV;
772 772
773 sg_init_table(&sg, 1); 773 sg_init_table(&sg, 1);
774 sg_set_page(&sg, virt_to_page(pkt->dma), 774 sg_set_page(&sg, virt_to_page(pkt->dma),