kernel_samsung_a53x/drivers/net/ethernet/hisilicon/hns
Yonglong Liu 0e35f9bb35 net: hns: fix fake link up on xge port
[ Upstream commit f708aba40f9c1eeb9c7e93ed4863b5f85b09b288 ]

If a xge port just connect with an optical module and no fiber,
it may have a fake link up because there may be interference on
the hardware. This patch adds an anti-shake to avoid the problem.
And the time of anti-shake is base on tests.

Fixes: b917078c1c10 ("net: hns: Add ACPI support to check SFP present")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:39 +01:00
..
hnae.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hnae.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_ae_adapt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_gmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_gmac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_mac.c net: hns: fix fake link up on xge port 2024-11-18 12:11:39 +01:00
hns_dsaf_mac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_main.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_misc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_ppe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_ppe.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_rcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_rcb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_xgmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_dsaf_xgmac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_enet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_enet.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00