kernel_samsung_a53x/arch/x86/platform
Ilpo Järvinen 1dd248abe6 x86/platform/iosf_mbi: Convert PCIBIOS_* return codes to errnos
[ Upstream commit 7821fa101eab529521aa4b724bf708149d70820c ]

iosf_mbi_pci_{read,write}_mdr() use pci_{read,write}_config_dword()
that return PCIBIOS_* codes but functions also return -ENODEV which are
not compatible error codes. As neither of the functions are related to
PCI read/write functions, they should return normal errnos.

Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal
errno before returning it.

Fixes: 46184415368a ("arch: x86: New MailBox support driver for Intel SOC's")
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240527125538.13620-4-ilpo.jarvinen@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:19:56 +01:00
..
atom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ce4100 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efi efi/x86: Free EFI memory map only when installing a new one. 2024-11-19 14:19:35 +01:00
geode Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
goldfish Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel x86/platform/iosf_mbi: Convert PCIBIOS_* return codes to errnos 2024-11-23 23:19:56 +01:00
intel-mid Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-quark Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iris Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
olpc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvh x86/stackprotector/32: Make the canary into a regular percpu variable 2024-11-19 09:22:37 +01:00
scx200 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sfi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ts5500 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uv Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00