]> 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>
Sun, 14 Nov 2021 01:41:25 +0000 (11:41 +1000)
commitd9d62504778435df82b6f01b74c0bf2f8d1256d3
treef71df47eae72036c0ba4a021a049d7506353e670
parent3d093d5b00533827864689f7638476eff83c7894
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.

Approved by: re (gjb)
Reported by: woodsb02
Tested by: woodsb02 (NUC)
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 561cd74b1704ab76a3286733fb43da53b6892ea4)
(cherry picked from commit 267a39780ea8c89b7a89ca9e91dcfff02c69656f)
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