]> git.hungrycats.org Git - linux/commitdiff
sh_eth: R8A7740 supports packet shecksumming
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 4 Jan 2017 21:29:32 +0000 (00:29 +0300)
committerSasha Levin <alexander.levin@verizon.com>
Sun, 10 Sep 2017 20:36:05 +0000 (16:36 -0400)
[ Upstream commit 0f1f9cbc04dbb3cc310f70a11cba0cf1f2109d9c ]

The R8A7740 GEther controller supports the packet checksum offloading
but the 'hw_crc' (bad name, I'll fix it) flag isn't set in the R8A7740
data,  thus CSMR isn't cleared...

Fixes: 73a0d907301e ("net: sh_eth: add support R8A7740")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/net/ethernet/renesas/sh_eth.c

index 3d5e65ff5fcdcb150f5e7c8014366713864f5443..e2dd94a91c155637a868da6abb2a51a1fa602578 100644 (file)
@@ -795,6 +795,7 @@ static struct sh_eth_cpu_data r8a7740_data = {
        .rpadir_value   = 2 << 16,
        .no_trimd       = 1,
        .no_ade         = 1,
+       .hw_crc         = 1,
        .tsu            = 1,
        .select_mii     = 1,
        .shift_rd0      = 1,