linux-imx/drivers/char/hw_random
Ilpo Järvinen e91173e375 hwrng: amd - Convert PCIBIOS_* return codes to errnos
commit 14cba6ace7 upstream.

amd_rng_mod_init() uses pci_read_config_dword() that returns PCIBIOS_*
codes. The return code is then returned as is but amd_rng_mod_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.

Fixes: 96d63c0297 ("[PATCH] Add AMD HW RNG driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-03 08:54:21 +02:00
..
amd-rng.c hwrng: amd - Convert PCIBIOS_* return codes to errnos 2024-08-03 08:54:21 +02:00
arm_smccc_trng.c hwrng: arm-smccc-trng - don't set drvdata 2023-07-22 13:59:39 +12:00
atmel-rng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00
ba431-rng.c hwrng: ba431 - use dev_err_probe after failed registration 2023-07-22 13:59:37 +12:00
bcm2835-rng.c hwrng: bcm2835 - Fix hwrng throughput regression 2023-11-20 11:59:18 +01:00
cavium-rng-vf.c hwrng: core - treat default_quality as a maximum and default to 1024 2022-11-18 16:59:34 +08:00
cavium-rng.c
cctrng.c hwrng: cctrng - use dev_err_probe in error paths 2023-07-28 18:20:25 +08:00
cctrng.h
cn10k-rng.c hwrng: cn10k - use dev_err_probe 2023-07-28 18:20:25 +08:00
core.c hwrng: core - Fix wrong quality calculation at hw rng registration 2024-08-03 08:53:59 +02:00
exynos-trng.c hwrng: exynos - switch to DEFINE_SIMPLE_DEV_PM_OPS 2023-07-20 22:16:24 +12:00
geode-rng.c hwrng: geode - fix accessing registers 2023-11-20 11:59:18 +01:00
hisi-rng.c
histb-rng.c hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c 2023-05-12 18:48:01 +08:00
imx-rngc.c hwrng: imx-rngc - use dev_err_probe 2023-07-20 22:16:23 +12:00
ingenic-rng.c hwrng: Enable COMPILE_TEST for more drivers 2023-08-04 17:09:26 +08:00
ingenic-trng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00
intel-rng.c
iproc-rng200.c hwrng: iproc-rng200 - Implement suspend and resume calls 2023-08-18 17:01:09 +08:00
ixp4xx-rng.c
jh7110-trng.c hwrng: starfive - Fix dev_err_probe return error 2024-02-05 20:14:16 +00:00
Kconfig hwrng: Enable COMPILE_TEST for more drivers 2023-08-04 17:09:26 +08:00
ks-sa-rng.c
Makefile hwrng: histb - Move driver to drivers/char/hw_random/histb-rng.c 2023-05-12 18:48:01 +08:00
meson-rng.c hwrng: meson - remove not needed call to platform_set_drvdata 2023-03-14 17:06:42 +08:00
mpfs-rng.c hwrng: core - treat default_quality as a maximum and default to 1024 2022-11-18 16:59:34 +08:00
mtk-rng.c hwrng: mtk - add mt7986 support 2022-10-21 19:15:35 +08:00
mxc-rnga.c
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c hwrng: nomadik - use dev_err_probe 2023-07-20 22:16:23 +12:00
npcm-rng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00
octeon-rng.c
omap-rng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00
omap3-rom-rng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00
optee-rng.c hwrng: optee - remove redundant initialization to variable rng_size 2022-04-29 13:44:58 +08:00
pasemi-rng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00
pic32-rng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00
powernv-rng.c random: do not include <asm/archrandom.h> from random.h 2022-12-20 03:13:45 +01:00
pseries-rng.c
s390-trng.c random: do not include <asm/archrandom.h> from random.h 2022-12-20 03:13:45 +01:00
st-rng.c hwrng: st - keep clock enabled while hwrng is registered 2023-06-23 16:15:37 +08:00
stm32-rng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00
timeriomem-rng.c hwrng: timeriomem - Use devm_platform_get_and_ioremap_resource() 2023-07-20 22:16:25 +12:00
via-rng.c hwrng: via - Fix comment typo 2022-07-22 16:22:04 +08:00
virtio-rng.c hwrng: virtio - Fix race on data_avail and actual data 2023-05-12 18:48:01 +08:00
xgene-rng.c hwrng: xgene: Add explicit io.h include 2023-08-05 12:37:37 +08:00
xiphera-trng.c hwrng: Explicitly include correct DT includes 2023-08-04 17:09:26 +08:00