diff options
author | 2023-01-13 23:46:19 +0100 | |
---|---|---|
committer | 2023-01-16 13:38:28 +0000 | |
commit | ce870af39558448dcfabef7114b9aa389f3f895a (patch) | |
tree | 408faa00d371d55ca3edcd8360735e9cb92d34f0 /drivers/net/ethernet/microchip/vcap | |
parent | net: dsa: mv88e6xxx: Enable PTP receive for mv88e6390 (diff) | |
download | linux-ce870af39558448dcfabef7114b9aa389f3f895a.tar.gz linux-ce870af39558448dcfabef7114b9aa389f3f895a.tar.bz2 linux-ce870af39558448dcfabef7114b9aa389f3f895a.zip |
r8169: reset bus if NIC isn't accessible after tx timeout
ASPM issues may result in the NIC not being accessible any longer.
In this case disabling ASPM may not work. Therefore detect this case
by checking whether register reads return ~0, and try to make the
NIC accessible again by resetting the secondary bus.
v2:
- add exception handling for the case that pci_reset_bus() fails
Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip/vcap')
0 files changed, 0 insertions, 0 deletions