]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
igc: Use hardware routine for PHY reset
authorPeter Grehan <grehan@FreeBSD.org>
Mon, 1 Nov 2021 13:35:43 +0000 (23:35 +1000)
committerPeter Grehan <grehan@FreeBSD.org>
Mon, 8 Nov 2021 13:33:10 +0000 (23:33 +1000)
commit561cd74b1704ab76a3286733fb43da53b6892ea4
tree26b5de6037eb0c0df5f8a07e3538c2e6ff99efa1
parent6e0755b37b20f776c7a9ac7a720db1af13966717
igc: Use hardware routine for PHY reset

Summary:
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. This was seen with the onboard igc port
on an 11th-gen Intel NUC.

The software reset isn't used in the Linux driver so all related
code has been removed.

Tested on: Netgate 6100 onboard ports, a discrete PCIe I225-LM card,
and an 11th-gen Intel NUC.

Reported by: woodsb02
Tested by: woodsb02 (NUC)
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")
Reviewed by: kbowling
Differential Revision: https://reviews.freebsd.org/D32772
sys/dev/igc/igc_api.c
sys/dev/igc/igc_api.h
sys/dev/igc/igc_hw.h
sys/dev/igc/igc_i225.c
sys/dev/igc/igc_phy.c
sys/dev/igc/igc_phy.h