diff options
author | Igor Russkikh <igor.russkikh@aquantia.com> | 2017-09-25 10:48:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-26 23:44:31 +0300 |
commit | a7bb1bea3a296549ebfc28afa76276ef392f9afa (patch) | |
tree | 4adcbde416158d7b6e9a9ff14efb60002f3b6f86 | |
parent | 3aec6412e007b294d4c135f5c7ed5e5ecf37dd2e (diff) | |
download | linux-a7bb1bea3a296549ebfc28afa76276ef392f9afa.tar.xz |
aquantia: Fix transient invalid link down/up indications
Due to a bug in aquantia atlantic card firmware, it sometimes reports
invalid link speed bits. That caused driver to report link down events,
although link itself is totally fine.
This patch ignores such out of blue readings.
Signed-off-by: Pavel Belous <Pavel.Belous@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c index 4f5ec9a0fbfb..bf734b32e44b 100644 --- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c +++ b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c @@ -351,8 +351,7 @@ int hw_atl_utils_mpi_get_link_status(struct aq_hw_s *self) break; default: - link_status->mbps = 0U; - break; + return -EBUSY; } } |