]> git.baikalelectronics.ru Git - uboot.git/commit
net: e1000: add defaults for i210 TX/RX PBSIZE
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 6 Oct 2020 14:08:35 +0000 (16:08 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Oct 2020 15:16:34 +0000 (11:16 -0400)
commitafd89809aed9011d6b67fa67042c4d60f391d400
treec4b76f324b20a9c75f690dc2094d1937e540e340
parent42714ee768698875e052f1a1a78a68419b3b9e5c
net: e1000: add defaults for i210 TX/RX PBSIZE

Set the defaults on probe for the packet buffer size registers
for the i210.

The TX/RX PBSIZE register of the i210 resets to its default value
only at power-on - see Intel Ethernet Controller I210 Datasheet rev 3.5
chapter 8.3 'Internal Packet Buffer Size Registers'.

If something (another driver, another OS, etc.) modifies this register
from its default value, the e1000 driver doesn't function correctly. It
detects a hang of the transmitter and continuously resets the adapter.
Here we set this value to its default when resetting the i210 to
resolve this issue.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/net/e1000.c
drivers/net/e1000.h