[lan78xx] Always enable automatic speed and duplex detection master github/master
authorMichael Brown <mcb30@ipxe.org>
Sun, 29 Sep 2019 19:59:22 +0000 (20:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 29 Sep 2019 19:59:22 +0000 (20:59 +0100)
commit3fe683ebab29afacf224e6b0921f6329bebcdca7
tree58348eabd52a32d0019c45e873e0b187137f0d6f
parent41a9a5c7b3674f0fac6d8fa3b633cde17c2df78f
[lan78xx] Always enable automatic speed and duplex detection

On devices with no EEPROM or OTP, the MAC_CR register defaults to not
using automatic link speed detection, with the result that no packets
are successfully sent or received.

Fix by always enabling automatic speed and duplex detection, since
iPXE provides no mechanism for manual configuration of either link
speed or duplex.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/lan78xx.c
src/drivers/net/lan78xx.h