]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: phy: smsc: fix link up detection in forced irq mode
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 4 Mar 2023 10:52:44 +0000 (11:52 +0100)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:09 +0000 (13:33 +0200)
commit6f76f1b910928ca6da3ac937a76c53b13c618c08
tree1c750d7265a392d054fdbd61c54b641c3db466fc
parent780312267918c96c2232ad13ce6d1a83a2994787
net: phy: smsc: fix link up detection in forced irq mode

BugLink: https://bugs.launchpad.net/bugs/2016875
[ Upstream commit 58aac3a2ef414fea6d7fdf823ea177744a087d13 ]

Currently link up can't be detected in forced mode if polling
isn't used. Only link up interrupt source we have is aneg
complete which isn't applicable in forced mode. Therefore we
have to use energy-on as link up indicator.

Fixes: 7365494550f6 ("net: phy: smsc: skip ENERGYON interrupt if disabled")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/phy/smsc.c