]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/tty/serial/sh-sci.c
Merge branch 'dma_slave_direction' into next_test_dirn
[mv-sheeva.git] / drivers / tty / serial / sh-sci.c
index 1945c70539c2bb8326bdda5ec1e31d7c69980d43..9900e8560452afaac369156c7694e0bff8db0c67 100644 (file)
@@ -1214,7 +1214,7 @@ static void sci_submit_rx(struct sci_port *s)
                struct dma_async_tx_descriptor *desc;
 
                desc = chan->device->device_prep_slave_sg(chan,
-                       sg, 1, DMA_FROM_DEVICE, DMA_PREP_INTERRUPT);
+                       sg, 1, DMA_DEV_TO_MEM, DMA_PREP_INTERRUPT);
 
                if (desc) {
                        s->desc_rx[i] = desc;
@@ -1329,7 +1329,7 @@ static void work_fn_tx(struct work_struct *work)
        BUG_ON(!sg_dma_len(sg));
 
        desc = chan->device->device_prep_slave_sg(chan,
-                       sg, s->sg_len_tx, DMA_TO_DEVICE,
+                       sg, s->sg_len_tx, DMA_MEM_TO_DEV,
                        DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
        if (!desc) {
                /* switch to PIO */