net: phy: don't use locking in phy_is_started
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 13 Feb 2019 19:11:40 +0000 (20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 17:04:55 +0000 (12:04 -0500)
commita2fc9d7e36f6d484d9be4a0a204400aaf6059544
tree59ed82df8c097d39f1912315f2cff6dba295c717
parent39c133196237335e8ee9e3694ef7921241cf6a41
net: phy: don't use locking in phy_is_started

Russell suggested to remove the locking from phy_is_started() because
the read is atomic anyway and actually the locking may be more
misleading.

Fixes: 2b3e88ea6528 ("net: phy: improve phy state checking")
Suggested-by: Russell King - ARM Linux admin <linux@armlinux.org.uk>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
include/linux/phy.h