Commit 812a9de7 authored by Sonic Zhang's avatar Sonic Zhang Committed by David S. Miller

netdev: bfin_mac: clear RXCKS if hardware generated checksum is not enabled

Otherwise we might be get a setting mismatch from a previous module or
bootloader and what the driver currently expects.
Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ad2864d8
...@@ -515,10 +515,11 @@ void setup_system_regs(struct net_device *dev) ...@@ -515,10 +515,11 @@ void setup_system_regs(struct net_device *dev)
* Configure checksum support and rcve frame word alignment * Configure checksum support and rcve frame word alignment
*/ */
sysctl = bfin_read_EMAC_SYSCTL(); sysctl = bfin_read_EMAC_SYSCTL();
sysctl |= RXDWA;
#if defined(BFIN_MAC_CSUM_OFFLOAD) #if defined(BFIN_MAC_CSUM_OFFLOAD)
sysctl |= RXDWA | RXCKS; sysctl |= RXCKS;
#else #else
sysctl |= RXDWA; sysctl &= ~RXCKS;
#endif #endif
bfin_write_EMAC_SYSCTL(sysctl); bfin_write_EMAC_SYSCTL(sysctl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment