(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

net: rnpgbe: Add link status handling support

Add link status handling for the RNPGBE driver. Introduce link state data structures for speed, duplex and link state, and process firmware link events delivered over the mailbox, since firmware controls the link and phylink is not used. Add a service task to handle pending events and manage carrier status with netif_carrier_on()/netif_carrier_off(). Notify firmware when the interface is brought up and after the data path is quiesced during teardown, and fail interface open if the firmware port-up or link-report setup fails. Validate firmware link events before updating the cached link state. Enable the GMAC receiver in receive-all mode after the chip-level receive filter has been configured, and document the driver-to-firmware link-state snapshot and reset semantics. Configure firmware after reset to enable autonegotiation. Advertise 10/100Mb/s half- and full-duplex modes and 1000 Mb/s full-duplex mode. Fail probe if firmware does not acknowledge the link setup command. Signed-off-by: Dong Yibo <dong100@mucse.com> Link: https://patch.msgid.link/C41AE78496D9DC2B+20261013023109.63764-1-dong100@mucse.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>


Author Dong Yibo Committer Jakub Kicinski Date Commit Parent 20c17178