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: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
ad2864d887
Коммит
812a9de715
|
@ -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();
|
||||
#if defined(BFIN_MAC_CSUM_OFFLOAD)
|
||||
sysctl |= RXDWA | RXCKS;
|
||||
#else
|
||||
sysctl |= RXDWA;
|
||||
#if defined(BFIN_MAC_CSUM_OFFLOAD)
|
||||
sysctl |= RXCKS;
|
||||
#else
|
||||
sysctl &= ~RXCKS;
|
||||
#endif
|
||||
bfin_write_EMAC_SYSCTL(sysctl);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче