Re: [PATCH net] net: stmmac: dwmac-rk: keep the GMAC powered when the PHY wakes the system
From: Andrew Lunn
Date: Thu Oct 01 2026 - 08:09:29 EST
On Thu, Oct 01, 2026 at 06:11:09AM +0300, Igor Velkov wrote:
> On Wed, Sep 30, 2026 at 11:51:45PM +0200, Andrew Lunn wrote:
> > You have not answered the question why is hangs? Given the current
> > description, this just sounds like a workaround, not a fix.
>
> It hangs because the PHY interrupt handler accesses the powered-down MAC.
>
> stmmac sets mac_managed_pm, so mdio_bus_phy_suspend() returns before
> setting irq_suspended and phy_interrupt() runs the handler at once.
Why is the PHY interrupting? What interrupts are left enabled? Should
the mask be changed to disable everything except wol?
Andrew