aquantia: Fix transient invalid link down/up indications
authorIgor Russkikh <igor.russkikh@aquantia.com>
Mon, 25 Sep 2017 07:48:49 +0000 (10:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Sep 2017 20:44:31 +0000 (13:44 -0700)
commita7bb1bea3a296549ebfc28afa76276ef392f9afa
tree4adcbde416158d7b6e9a9ff14efb60002f3b6f86
parent3aec6412e007b294d4c135f5c7ed5e5ecf37dd2e
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>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c