]> asedeno.scripts.mit.edu Git - linux.git/commit
net: phy: don't set state PHY_CHANGELINK in phy_change
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 9 Nov 2018 17:55:50 +0000 (18:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 17:41:32 +0000 (09:41 -0800)
commit8deeb6309cc447b9b35939558f18e2164dd110df
treed53866ec45d5976807320115b40d022bb9d4b1bf
parentd79e26a7efc22c4cc2cd66529cc3bd4e0ed5938a
net: phy: don't set state PHY_CHANGELINK in phy_change

State PHY_CHANGELINK isn't needed here, we can call the state machine
directly. We just have to remove the check for phy_polling_mode() to
make this work also in interrupt mode. Removing this check doesn't
cause any overhead because when not polling the state machine is
called only if required by some event.

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