]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: let pci_disable_link_state propagate errors
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 18 Jun 2019 21:13:48 +0000 (23:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Jun 2019 02:05:42 +0000 (22:05 -0400)
commita51dd0b4e308ba6fe9ae7ecad9e5081cf61d8f70
tree9a58ea195f240a1bba5a5e33baf8d0d4fe8adfbb
parent62810a7c3a0319239d3cf93b5898ff5d139f8e73
PCI: let pci_disable_link_state propagate errors

Drivers may rely on pci_disable_link_state() having disabled certain
ASPM link states. If OS can't control ASPM then pci_disable_link_state()
turns into a no-op w/o informing the caller. The driver therefore may
falsely assume the respective ASPM link states are disabled.
Let pci_disable_link_state() propagate errors to the caller, enabling
the caller to react accordingly.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/pci/pcie/aspm.c
include/linux/pci-aspm.h