]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: remove not needed call to dma_sync_single_for_device
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 27 Jun 2019 21:19:09 +0000 (23:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jun 2019 19:29:39 +0000 (12:29 -0700)
commit5341aa979eec02a2a5749b2984ae6c33243e35c3
tree116642c249c9fb87a4837c6e64c4efacca1888d0
parent3931bfbbabd072762595c6fde297e76d6fdf55bf
r8169: remove not needed call to dma_sync_single_for_device

DMA_API_HOWTO.txt includes an example explaining when
dma_sync_single_for_device() is not needed, and that example matches
our use case. The buffer isn't changed by the CPU and direction is
DMA_FROM_DEVICE, so we can remove the call to
dma_sync_single_for_device().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c