projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35e1658
)
net-ks8842: move to dma_transfer_direction
author
Vinod Koul
<vinod.koul@linux.intel.com>
Fri, 14 Oct 2011 05:22:48 +0000
(10:52 +0530)
committer
Vinod Koul
<vinod.koul@linux.intel.com>
Mon, 31 Oct 2011 04:10:27 +0000
(09:40 +0530)
fixup usage of dma direction by introducing dma_transfer_direction,
this patch moves net/ks8842 drivers to use new enum
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Samuel Ortiz <sameo@linux.intel.com>
drivers/net/ks8842.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ks8842.c
b/drivers/net/ks8842.c
index 4a6ae057e3b1ad408335c47644647bc1207ac70f..de9f2e205962bd96304ef2c20efcf0fcb447b434 100644
(file)
--- a/
drivers/net/ks8842.c
+++ b/
drivers/net/ks8842.c
@@
-459,7
+459,7
@@
static int ks8842_tx_frame_dma(struct sk_buff *skb, struct net_device *netdev)
sg_dma_len(&ctl->sg) += 4 - sg_dma_len(&ctl->sg) % 4;
ctl->adesc = ctl->chan->device->device_prep_slave_sg(ctl->chan,
- &ctl->sg, 1, DMA_
TO_DEVICE
,
+ &ctl->sg, 1, DMA_
MEM_TO_DEV
,
DMA_PREP_INTERRUPT | DMA_COMPL_SKIP_SRC_UNMAP);
if (!ctl->adesc)
return NETDEV_TX_BUSY;
@@
-571,7
+571,7
@@
static int __ks8842_start_new_rx_dma(struct net_device *netdev)
sg_dma_len(sg) = DMA_BUFFER_SIZE;
ctl->adesc = ctl->chan->device->device_prep_slave_sg(ctl->chan,
- sg, 1, DMA_
FROM_DEVICE
,
+ sg, 1, DMA_
DEV_TO_MEM
,
DMA_PREP_INTERRUPT | DMA_COMPL_SKIP_SRC_UNMAP);
if (!ctl->adesc)