aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2026-10-06 17:32:33 -0700
committerJakub Kicinski <kuba@kernel.org>2026-10-06 17:34:15 -0700
commita9c455cd3de7fe141b140fc875c1fa8e7c9a6a33 (patch)
tree6b5bee84503c9ddd737b7fa5f29d05e93e4eaec5 /scripts/Makefile.thinlto
parentnet: devmem: use page_pool_put_netmem_bulk (diff)
parentnet: phy: restore the interrupt when the generic bind cycle fails (diff)
Merge branch 'net-phy-keep-a-phy-interrupt-across-a-generic-bind-cycle'
Aleksei Sviridkin says: ==================== net: phy: keep a PHY interrupt across a generic bind cycle On a Keenetic KN-1012 the EN8811H PHY behind lan4 has its driver as a module on the root filesystem, so it binds to the generic driver first. phy_probe() replaces its interrupt with PHY_POLL, and nothing puts it back when the real driver takes over, so the PHY is polled for the rest of the uptime. Patches 1 and 2 put the lan78xx and smsc95xx PHY interrupts into the MDIO bus table entry of the PHY each driver uses, so there is a number to restore for them too. Patch 3 restores the interrupt from that table in phy_detach(). Patch 4 restores it when the generic bind fails inside phy_attach_direct(). Not covered: a driver without interrupt support that is bound or unbound through sysfs still leaves PHY_POLL behind. Removing the substitution from phy_probe() would fix that too, and belongs in net-next. Patches 1 and 2 are compile-tested only; a Tested-by from someone with a LAN78xx or LAN95xx device would help. Patch 4 touches lines that patch 2 of the attach guard series [3] also changes, so whichever lands second needs a trivial rebase. Other drivers that write phydev->irq outside the bus table, checked against net/main: - ixp4xx_eth, ax88796c and emac-mac force PHY_POLL themselves, and none of them attaches again after a detach without forcing it again. - stmmac and mlxbf_gige already write mdiobus->irq[] as well. - bcmasp for an internal PHY, genet for an internal PHY before v5, and tsnep set PHY_MAC_INTERRUPT again after each connect, so a restore does not last. icplus sets it on every status read of a switch port. - sxgbe does it only from probed_phy_irq, which nothing in tree sets. - ucc_geth only reads the field. ==================== Link: https://patch.msgid.link/20261001130236.106059-1-f@lex.la Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions