MIPS: PCI: Return PCIBIOS_* from tx4927_pci_config_read/write()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 8 Feb 2024 12:09:58 +0000 (14:09 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 20 Feb 2024 12:36:35 +0000 (13:36 +0100)
commit923cfd0813377e809b91694f3f05a8c04c55517c
treee0e88cc0cba59afcf407d4cbba75e3cd8da6fc0b
parent10e51ebcef8276e22ab04d6d1653caba43916fce
MIPS: PCI: Return PCIBIOS_* from tx4927_pci_config_read/write()

pci_ops .read/.write must return PCIBIOS_* codes but
tx4927_pci_config_read/write() return -1 when mkaddr() cannot find
devfn from the root bus. Return PCIBIOS_DEVICE_NOT_FOUND instead and
pass that onward in the call chain instead of overwriting the return
value.

Also converts 0 -> PCIBIOS_SUCCESSFUL which has only cosmetic impact.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmal.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/pci/ops-tx4927.c