]> git.baikalelectronics.ru Git - kernel.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)
commit1892aacb0f6281f2e356bdb82feb84ec3ced46a9
treed53866ec45d5976807320115b40d022bb9d4b1bf
parent3ab800e61ab64a89aef30a19dded73a329d4970a
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