]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: moxa: synchronize DMA memory
authorJonas Jensen <jonas.jensen@gmail.com>
Mon, 25 Aug 2014 14:22:32 +0000 (16:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Aug 2014 00:25:39 +0000 (17:25 -0700)
commit777fbc31447f111a1492c90fae2bc616f836d407
tree46267cecb890c639fc2e690517a6d9388a01e075
parent9fe1b3bc8d9182e950a744e4a47187420efa67f3
net: moxa: synchronize DMA memory

DMA memory should be synchronized before data is passed
to/from controller.

Add dma_sync_single_for_cpu(.., DMA_FROM_DEVICE) to RX path
and dma_sync_single_for_device(.., DMA_TO_DEVICE) to TX path.

Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/moxa/moxart_ether.c