]> Gentwo Git Trees - linux/.git/commit
net: hibmcge: remove unnecessary check for np_link_fail in scenarios without phy.
authorJijie Shao <shaojijie@huawei.com>
Sat, 25 Oct 2025 01:46:41 +0000 (09:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Oct 2025 02:11:04 +0000 (19:11 -0700)
commit71eb8d1e07562b43bebc0c2721699814b43fd83d
treeb69d5f4dd2e9afe2f2116e3fc8f5cc690abe5741
parent12d2303db892d397373e2af40758cbd97309ec37
net: hibmcge: remove unnecessary check for np_link_fail in scenarios without phy.

hibmcge driver uses fixed_phy to configure scenarios without PHY,
where the driver is always in a linked state. However,
there might be no link in hardware, so the np_link error
is detected in hbg_hw_adjust_link(), which can cause abnormal logs.

Therefore, in scenarios without a PHY, the driver no longer
checks the np_link status.

Fixes: 1d7cd7a9c69c ("net: hibmcge: support scenario without PHY")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20251025014642.265259-3-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c
drivers/net/ethernet/hisilicon/hibmcge/hbg_mdio.c