]> git.baikalelectronics.ru Git - kernel.git/commit
sh_eth: Fix DMA-API usage for RX buffers
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Tue, 27 Jan 2015 00:50:24 +0000 (00:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 08:18:54 +0000 (00:18 -0800)
commit185a39801a67afb5e40a719606a945bbc6578b3e
treecd61f6cb3d68d8a6a6351ff84dcfc3db3c24b2b5
parent60a3d2c159c9efe3c289661b30861d389553e3ab
sh_eth: Fix DMA-API usage for RX buffers

- Use the return value of dma_map_single(), rather than calling
  virt_to_page() separately
- Check for mapping failue
- Call dma_unmap_single() rather than dma_sync_single_for_cpu()

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c