OSDN Git Service

atl1c: improve link detection reliability on Mikrotik 10/25G NIC
authorGatis Peisenieks <gatis@mikrotik.com>
Thu, 13 May 2021 11:43:26 +0000 (14:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 May 2021 22:48:10 +0000 (15:48 -0700)
commitea0fbd05d7bd3298290d3579a837311ee5ceaf18
tree562621c7525aece0f397a1a3d3d898e9606a8a3b
parentb0390009502b0c635f9ddc26a16025268f6c6211
atl1c: improve link detection reliability on Mikrotik 10/25G NIC

Mikrotik 10/25G NIC emulates the MDIO accesses, but the emulation is
not 100% reliable - the MDIO ops occasionally can timeout.

This adds a reliable way of detecting link on Mikrotik 10/25G NIC.

Signed-off-by: Gatis Peisenieks <gatis@mikrotik.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c_hw.c
drivers/net/ethernet/atheros/atl1c/atl1c_hw.h
drivers/net/ethernet/atheros/atl1c/atl1c_main.c