]> Git Repo - linux.git/commitdiff
Revert "r8169: remove not needed call to dma_sync_single_for_device"
authorHeiner Kallweit <[email protected]>
Fri, 23 Aug 2019 17:57:49 +0000 (19:57 +0200)
committerDavid S. Miller <[email protected]>
Fri, 23 Aug 2019 22:11:26 +0000 (15:11 -0700)
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 <[email protected]>
Reported-by: Aaro Koskinen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/realtek/r8169_main.c

index e1dd6ea60d67050f2784a08d2ec2589eef040a35..bae0074ab9aadf287df7cf07b4deef285393cd9c 100644 (file)
@@ -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;
 }
This page took 0.06472 seconds and 4 git commands to generate.