]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: clear phydev->suspended after soft reset
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 23 Apr 2020 19:38:42 +0000 (21:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 23:47:51 +0000 (16:47 -0700)
commitdf5995e3ac1605bec99bb5ce6ef574e0b5d9dc37
treef4d442689a28a1719e0e5a1323679472127df000
parentcbe2d9eb7f0d2ae1600e4bf9b5b7cb80e22ce7d9
net: phy: clear phydev->suspended after soft reset

If a soft reset is triggered whilst PHY is in power-down, then
phydev->suspended will remain set. Seems we didn't face any issue yet
caused by this, but better reset the suspended flag after soft reset.

See also the following from 22.2.4.1.1
Resetting a PHY is accomplished by setting bit 0.15 to a logic one.
This action shall set the status and control registers to their default
states.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c