]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa/bcm_sf2: fix incorrect usage of state->link
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 30 Jun 2020 10:28:08 +0000 (11:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 20:05:10 +0000 (13:05 -0700)
commit30273ea6eedd7c9aa7f5d66faa50eda6cb719adc
tree5edb4534002ac075e68a2f6955b8195d68c71f8f
parent56ca56894a97f842dc79c86eba16fafa8a724ec6
net: dsa/bcm_sf2: fix incorrect usage of state->link

state->link has never been valid in mac_config() implementations -
while it may be correct in some calls, it is not true that it can be
relied upon.

Fix bcm_sf2 to use the correct method of handling forced link status.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c