On 11/24/26 17:28, netd…@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 3 potential > issue(s) to consider. > > Critical: 0 · High: 1 · Medium: 2 · Low: 0 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [High] net: au1000: unattached PHYs on aup->mii_bus lack mac_managed_pm > - [Medium] Setting `phydev->mac_managed_pm = true` in au1000_mii_probe() > turns off phylib's MDIO-bus system-sleep handling. > - [Medium] When au1000_resume() fails, the interface is left in a state > it cannot leave once it is closed.
The driver now sets mac_managed_pm on every PHY registered on its MDIO bus, including unattached aliases. This prevents MDIO-bus PM from powering down the physical PHY before the MAC stops or accessing MDIO after the MAC clock is gated. The MAC manages power transitions through the attached PHY only, avoiding duplicate operations through aliases. The resume callback now calls phy_init_hw() and phy_resume() even when the interface is down, then resets and clock-gates the MAC again. It leaves the IRQ and PHY state machine stopped for an inactive interface. For resume failures, close now skips phy_stop() when the PHY is already halted and restores netdev presence after freeing the IRQ. A subsequent ifup requests the IRQ again and retries PHY initialization and resume, allowing recovery without rebinding the driver. pw-bot: cr
-- Florian