]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:26 +0000 (08:50 +0100)
commitb11b64a82729539831737f4bbeefcce54ed1f92a
treee54a6c1bf2923c7c2e68fc377d6406d1d09870ee
parenta87ccc806c5540c8ee134b560d9fd02bbf740fb7
net: phy: smsc: fix link up detection in forced irq mode

[ Upstream commit 13c6880707c5d7b547c66f13ec9c38beeb0188f8 ]

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: 4ffe361110db ("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>
drivers/net/phy/smsc.c