Skip to content

Commit

Permalink
netdev: bfin_mac: clear RXCKS if hardware generated checksum is not e…
Browse files Browse the repository at this point in the history
…nabled

Otherwise we might be get a setting mismatch from a previous module or
bootloader and what the driver currently expects.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sonic Zhang authored and David S. Miller committed May 18, 2010
1 parent ad2864d commit 812a9de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/bfin_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,11 @@ void setup_system_regs(struct net_device *dev)
* Configure checksum support and rcve frame word alignment
*/
sysctl = bfin_read_EMAC_SYSCTL();
sysctl |= RXDWA;
#if defined(BFIN_MAC_CSUM_OFFLOAD)
sysctl |= RXDWA | RXCKS;
sysctl |= RXCKS;
#else
sysctl |= RXDWA;
sysctl &= ~RXCKS;
#endif
bfin_write_EMAC_SYSCTL(sysctl);

Expand Down

0 comments on commit 812a9de

Please sign in to comment.