tsnep: Add link down PHY loopback support
authorGerhard Engleder <gerhard@engleder-embedded.com>
Tue, 23 Jan 2024 20:01:51 +0000 (21:01 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Jan 2024 01:33:51 +0000 (17:33 -0800)
commit5f76499fb541c3e8ae401414bfdf702940c8c531
treedff5aac017fcd23c2b07e6506e650b90b7c5e82b
parent3df18416267bb0d390399f4e63f74f7d76c5d92e
tsnep: Add link down PHY loopback support

PHY loopback turns off link state change signalling. Therefore, the
loopback only works if the link is already up before the PHY loopback is
activated.

Ensure that PHY loopback works even if the link is not already up during
activation by calling netif_carrier_on() explicitly.

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Link: https://lore.kernel.org/r/20240123200151.60848-1-gerhard@engleder-embedded.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/engleder/tsnep_main.c