Thread (10 messages) 10 messages, 4 authors, 13d ago

Re: [PATCH net v13 1/4] net: usb: lan78xx: register the PHY interrupt with the MDIO bus

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-10-05 16:53:09
Also in: linux-usb, lkml

On Thu, Oct 01, 2026 at 04:02:33PM +0300, Aleksei Sviridkin wrote:
The interrupt this driver maps for its PHY is written only into
phydev->irq, while the bus table mdiobus->irq[] keeps reading PHY_POLL
for the same address. That table is where phylib records what the bus
described - phy_device_create() seeds phydev->irq from it - so the
number lives only as long as nothing else writes that one field.

Copy the number into the table entry of the PHY this driver attaches,
and into no other. The chip has one PHY interrupt, and on 7801
phy_mask is 0, so other PHYs on the bus keep what the bus gave them.
The address is known only after the scan, so the write to phydev->irq
stays.

Found going through the drivers that keep a PHY interrupt outside the
bus table, so that the restore on detach later in this series has a
number to hand back here as well.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help