]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00300d8005eb0a8dd5e72d1011522b457cdf1400
tree59ed82df8c097d39f1912315f2cff6dba295c717
parent13f02e6c2c48f6bfe99ef9ce2bda4651768933b9
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: 554406ff9b5d ("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