MIPS: TXx9: Use PCI_SET_ERROR_RESPONSE()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 8 Feb 2024 12:09:59 +0000 (14:09 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 20 Feb 2024 12:36:35 +0000 (13:36 +0100)
Instead of literal, PCI error value should be set with
PCI_SET_ERROR_RESPONSE(). Use it in tx4927_pci_config_read().

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

index 670efbc5c585d3f764d2a3f604798e3a7183e9d8..37087f4137eee8f4e24ab723ea85298496f83638 100644 (file)
@@ -144,7 +144,7 @@ static int tx4927_pci_config_read(struct pci_bus *bus, unsigned int devfn,
 
        ret = mkaddr(bus, devfn, where, pcicptr);
        if (ret != PCIBIOS_SUCCESSFUL) {
-               *val = 0xffffffff;
+               PCI_SET_ERROR_RESPONSE(val);
                return ret;
        }
        switch (size) {