Re: [PATCH net-next 6/6] net: phy: dp83869: Fix link up reporting in SGMII bridge mode
From: Andrew Lunn
Date: Mon Jul 01 2024 - 13:10:23 EST
> + if (dp83869->mod_phy) {
> + ret = phy_read_status(dp83869->mod_phy);
> + if (ret)
> + return ret;
Locking? When phylib does this in phy_check_link_status(), we have:
lockdep_assert_held(&phydev->lock);
I don't see anything which takes the downstreams PHY lock.
Is this also introducing race conditions? What happens if the link
just went down? phy_check_link_status() takes actions. Will they still
happen when phylib next talks to the downstream PHY? It is probably
safer to call phy_check_link_status() than phy_read_status().
Andrew