Re: [PATCH net v2 1/2] net: phy: move irq_suspended and irq_rerun out of the bitfield
From: Andrew Lunn
Date: Mon Oct 26 2026 - 08:54:53 EST
On Mon, Oct 26, 2026 at 06:53:42AM +0200, Igor Velkov wrote:
> irq_suspended and irq_rerun share a word with link, autoneg_complete
> and interrupts. phy_interrupt() sets irq_rerun from the IRQ thread
> without phydev->lock
As you say, it is an IRQ thread. Because interrupt handlers might need
to access the PHY, which is a blocking operation,
request_threaded_irq() is used in phy_request_interrupt(). So you can
just take the mutex and make the RMW thread atomic.
Andrew