Re: [PATCH net] net: phy: fix race in genphy_update_link

2019-08-02 Thread David Miller
From: Heiner Kallweit Date: Wed, 31 Jul 2019 23:05:10 +0200 > In phy_start_aneg() autoneg is started, and immediately after that > link and autoneg status are read. As reported in [0] it can happen that > at time of this read the PHY has reset the "aneg complete" bit but not > yet the "link up" b

[PATCH net] net: phy: fix race in genphy_update_link

2019-07-31 Thread Heiner Kallweit
In phy_start_aneg() autoneg is started, and immediately after that link and autoneg status are read. As reported in [0] it can happen that at time of this read the PHY has reset the "aneg complete" bit but not yet the "link up" bit, what can result in a false link-up detection. To fix this don't re