]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Make error code types consistent in pci_{read,write}_config_*
authorBrian Norris <briannorris@chromium.org>
Tue, 23 May 2017 19:36:58 +0000 (12:36 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 26 May 2017 21:38:50 +0000 (16:38 -0500)
commit5102bb5db2c84c28e2ed8d85754026548e9d3c27
tree8a600d73190a41b34f3e45e7b3f527de6dbf606f
parent8aedc19c9748387f59e5df08b6c0935aa62700b3
PCI: Make error code types consistent in pci_{read,write}_config_*

Callers normally treat the config space accessors as returning PCBIOS_*
error codes, not Linux error codes (or they don't look at them at all).  We
have pcibios_err_to_errno() in case the error code needs to be translated.

Fixes: e19c05bfbbff ("PCI: Don't attempt config access to disconnected devices")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
drivers/pci/access.c