summaryrefslogtreecommitdiffstats
path: root/Documentation/PCI/pci.rst
diff options
context:
space:
mode:
authorBolarinwa Olayemi Saheed <refactormyself@gmail.com>2020-06-15 09:32:25 +0200
committerBjorn Helgaas <bhelgaas@google.com>2020-06-26 13:50:41 -0500
commitb91535812d663acc47952d05386c8a126eae8080 (patch)
treeeb430110d95108302d63c5a6ff23bf871eec1383 /Documentation/PCI/pci.rst
parentd20df83b66ccb9cc6b1ac448d4013647a0fe4952 (diff)
downloadlinux-b91535812d663acc47952d05386c8a126eae8080.tar.bz2
PCI: Align PCIe capability and PCI accessor return values
The PCI config accessors (pci_read_config_word(), et al) return PCIBIOS_SUCCESSFUL (zero) or positive error values like PCIBIOS_FUNC_NOT_SUPPORTED. The PCIe capability accessors similarly return PCIBIOS errors, but in addition, they can return -EINVAL. This makes it harder than it should be to check for errors. Return PCIBIOS_BAD_REGISTER_NUMBER instead of -EINVAL in all PCIe capability accessors. Suggested-by: Bjorn Helgaas <bjorn@helgaas.com> Link: https://lore.kernel.org/r/20200615073225.24061-9-refactormyself@gmail.com Signed-off-by: Bolarinwa Olayemi Saheed <refactormyself@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'Documentation/PCI/pci.rst')
0 files changed, 0 insertions, 0 deletions