OSDN Git Service

net: bcmgenet: Clear RGMII_LINK upon link down
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 18 Nov 2022 21:37:54 +0000 (13:37 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Nov 2022 04:44:40 +0000 (20:44 -0800)
commit696450c05181559a35d4d5bee55c465b1ac6fe2e
treef86c775b0eecc827553e336d1d09335ed378ea24
parent4e9a61394dc47d651690f4f87398ac5944e02678
net: bcmgenet: Clear RGMII_LINK upon link down

Clear the RGMII_LINK bit upon detecting link down to be consistent with
setting the bit upon link up. We also move the clearing of the
out-of-band disable to the runtime initialization rather than for each
link up/down transition.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20221118213754.1383364-1-f.fainelli@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/genet/bcmmii.c