Use hardware routine for PHY reset and always accept the PHY that's present.
authorkevlo <kevlo@openbsd.org>
Wed, 11 May 2022 06:14:15 +0000 (06:14 +0000)
committerkevlo <kevlo@openbsd.org>
Wed, 11 May 2022 06:14:15 +0000 (06:14 +0000)
commitb7fccf026afa546fe7227b1b5c5d307805762e4b
tree458b57f07bbdc39e8a7fe7cf0036c27830bd43f6
parentde97784bae590f3bed548339caca009d64cfd871
Use hardware routine for PHY reset and always accept the PHY that's present.

The previously used software reset routine wasn't sufficient to reset the PHY
if the bootloader hadn't left the device in an initialized state.
From FreeBSD.

Bug reported and the fix tested by daniel@
sys/dev/pci/if_igc.c
sys/dev/pci/igc_api.h
sys/dev/pci/igc_hw.h
sys/dev/pci/igc_i225.c
sys/dev/pci/igc_phy.c
sys/dev/pci/igc_phy.h