]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/pci: Use PCIBIOS return values in pci_read()/pci_write()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 8 Jan 2026 15:45:54 +0000 (16:45 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Sat, 17 Jan 2026 14:55:22 +0000 (15:55 +0100)
commit88303fb68cc2e8b975f1505c84f215a934f6c2ad
tree6417db78529ee1774567334993f57255f07881ca
parent84d875e69818bed600edccb09be4a64b84a34a54
s390/pci: Use PCIBIOS return values in pci_read()/pci_write()

While pci_read() and pci_write() have returned errno values since their
inception with commit cd24834130ac ("s390/pci: base support") other
config accessors in particular pci_generic_config_read() as well as
pci_generic_config_write() return specific error values which are then
converted to errno by pcibios_err_to_errno(). Since latter does handle
the case where the error value already looks like an errno the previous
behavior is unlikely to cause actual issues.

Still, for consistency and in case any caller explicitly checks error
values align pci_read() and pci_write() with the generic accessors.

Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Farhan Ali <alifm@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/pci/pci.c