net: rt8169: WAR for DHCP not getting IP after kernel boot/reboot
authorTom Warren <twarren@nvidia.com>
Thu, 26 Mar 2020 22:59:13 +0000 (15:59 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jun 2020 17:17:23 +0000 (13:17 -0400)
commita7a435e7d41db6a611427b4cc5fd506a18fb2c2f
tree25ea5817fe17ff2863790fca73100f694331bc9c
parentbaafd99d13931312ff3e2c1c75922d8a46222f7f
net: rt8169: WAR for DHCP not getting IP after kernel boot/reboot

This is a WAR for DHCP failure after rebooting from the L4T kernel. The
r8169.c kernel driver is setting bit 19 of the rt816x HW register 0xF0,
which goes by FuncEvent and MISC in various driver source/datasheets.
That bit is called RxDv_Gated_En in the r8169.c kernel driver. Clear it
here at the end of probe to ensure that U-Boot can get an IP assigned
via DHCP.

Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/net/rtl8169.c