lan78xx: Move enabling of EEE into PHY init code
authorPhil Elwell <phil@raspberrypi.org>
Thu, 5 Apr 2018 13:46:11 +0000 (14:46 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:32:45 +0000 (16:32 +0100)
commit63845cd48323ae1a9444ad0191b4b64ae5d24ee3
tree962492c39e9553f6a74b6532b5b9252daeca4b79
parent5276a3445175ce5e24dc8bd4601cec3de1f3344f
lan78xx: Move enabling of EEE into PHY init code

Enable EEE mode as soon as possible after connecting to the PHY, and
before phy_start. This avoids a second link negotiation, which speeds
up booting and stops the interface failing to become ready.

See: https://github.com/raspberrypi/linux/issues/2437

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/net/usb/lan78xx.c