Files
linux-stable-mirror/drivers/pci/hotplug
Ilpo Järvinen 2249f3d829 PCI: cpqphp: Fix PCIBIOS_* return value confusion
[ Upstream commit e2226dbc4a ]

Code in and related to PCI_RefinedAccessConfig() has three types of return
type confusion:

 - PCI_RefinedAccessConfig() tests pci_bus_read_config_dword() return value
   against -1.

 - PCI_RefinedAccessConfig() returns both -1 and PCIBIOS_* return codes.

 - Callers of PCI_RefinedAccessConfig() only test for -1.

Make PCI_RefinedAccessConfig() return PCIBIOS_* codes consistently and
adapt callers accordingly.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Link: https://lore.kernel.org/r/20241022091140.3504-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-05 14:02:21 +01:00
..
2024-09-19 14:24:00 -05:00
2024-09-19 14:24:00 -05:00
2024-08-02 11:39:59 -05:00
2024-08-02 11:39:59 -05:00
2024-08-02 11:39:59 -05:00
2024-08-02 11:39:59 -05:00
2024-08-02 11:39:59 -05:00