]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: make phy_suspend a no-op if PHY is suspended already
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 23 Apr 2020 19:34:33 +0000 (21:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 23:47:51 +0000 (16:47 -0700)
commit266715cdc6ccf2f3110dc060d23860585994f8bb
treed60aae00e30791e107c81e8089212005ab24658e
parent233d043eb02bb71128d9b237fc42b6e3babe3692
net: phy: make phy_suspend a no-op if PHY is suspended already

Gently handle the case that phy_suspend() is called whilst PHY is in
power-down.

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