Re: [PATCH net] net: phy: micrel: populate .soft_reset for KSZ9131

From: Russell King (Oracle)
Date: Fri Jan 05 2024 - 04:44:15 EST


On Fri, Jan 05, 2024 at 10:52:42AM +0200, Claudiu wrote:
> The order of PHY-related operations in ravb_open() is as follows:
> ravb_open() ->
> ravb_phy_start() ->
> ravb_phy_init() ->
> of_phy_connect() ->
> phy_connect_direct() ->
> phy_attach_direct() ->
> phy_init_hw() ->
> phydev->drv->soft_reset()
> phydev->drv->config_init()
> phydev->drv->config_intr()
> phy_resume()
> kszphy_resume()
>
> The order of PHY-related operations in ravb_close is as follows:
> ravb_close() ->
> phy_stop() ->
> phy_suspend() ->
> kszphy_suspend() ->
> genphy_suspend()
> // set BMCR_PDOWN bit in MII_BMCR

Andrew,

This looks wrong to me - shouldn't we be resuming the PHY before
attempting to configure it?

--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!