Re: [PATCH 1/2] gpio: amd8111: Convert PCIBIOS_* return codes to errnos

From: Bartosz Golaszewski
Date: Thu May 30 2024 - 05:22:02 EST


From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>


On Mon, 27 May 2024 16:23:44 +0300, Ilpo Järvinen wrote:
> amd_gpio_init() uses pci_read_config_dword() that returns PCIBIOS_*
> codes. The return code is then returned as is but amd_gpio_init() is
> a module init function that should return normal errnos.
>
> Convert PCIBIOS_* returns code using pcibios_err_to_errno() into normal
> errno before returning it from amd_gpio_init().
>
> [...]

Applied, thanks!

[1/2] gpio: amd8111: Convert PCIBIOS_* return codes to errnos
commit: d4cde6e42f2eb56436cab6d1931738ec09e64f74
[2/2] gpio: rdc321x: Convert PCIBIOS_* return codes to errnos
commit: 9a73e037f4b5eb45c9ecccb191d39c280abe7cbd

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>