diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-08-23 19:57:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-23 15:11:26 -0700 |
commit | 345b93265b3a3d001ec23b696b66059395238d16 (patch) | |
tree | a5f30bef1e3bd9ac0eb4882d8b9058eb4ff9ca50 /drivers | |
parent | db0b99f59ae4d934a0af1a5670706d7c2a4b58ea (diff) |
Revert "r8169: remove not needed call to dma_sync_single_for_device"
This reverts commit f072218cca5b076dd99f3dfa3aaafedfd0023a51.
As reported by Aaro this patch causes network problems on
MIPS Loongson platform. Therefore revert it.
Fixes: f072218cca5b ("r8169: remove not needed call to dma_sync_single_for_device")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index e1dd6ea60d67..bae0074ab9aa 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -5921,6 +5921,7 @@ static struct sk_buff *rtl8169_try_rx_copy(void *data, skb = napi_alloc_skb(&tp->napi, pkt_size); if (skb) skb_copy_to_linear_data(skb, data, pkt_size); + dma_sync_single_for_device(d, addr, pkt_size, DMA_FROM_DEVICE); return skb; } |