diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2019-11-16 13:14:21 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-11-21 23:03:22 +0100 |
commit | 5f9aea36b5ebf36e8391a0df03cc6f2d8d923a5d (patch) | |
tree | 1a932ea214585c1127fbb8b18112d3fccf49b7e8 /backport/backport-include/linux/mdio.h | |
parent | 5ab7098a8abed0a0e677892bc51f0bba684a4ba4 (diff) |
backports: Add return value to backport_pci_disable_link_state()
Since Linux upstream commit 4cfd21885592 ("PCI: let
pci_disable_link_state propagate errors") The
pci_disable_link_state() function can return an error. This
return code is now used by the mt76 driver.
In case it is not possible to disable ASPM, for example on some ACPI
systems, we should return an error and mt76 handles this. Do this by
checking the PCI registers if the operation was successfully.
The checking of the PCI register was added by Felix Fietkau.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/backport-include/linux/mdio.h')
0 files changed, 0 insertions, 0 deletions