linux-yocto/drivers/nvmem
Peter Korsgaard c8bb1bcea8 nvmem: zynqmp_nvmem: unbreak driver after cleanup
commit fe8abdd175 upstream.

Commit 29be47fcd6 ("nvmem: zynqmp_nvmem: zynqmp_nvmem_probe cleanup")
changed the driver to expect the device pointer to be passed as the
"context", but in nvmem the context parameter comes from nvmem_config.priv
which is never set - Leading to null pointer exceptions when the device is
accessed.

Fixes: 29be47fcd6 ("nvmem: zynqmp_nvmem: zynqmp_nvmem_probe cleanup")
Cc: stable <stable@kernel.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Tested-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://lore.kernel.org/r/20250509122407.11763-3-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-19 15:32:34 +02:00
..
layouts
apple-efuses.c
bcm-ocotp.c
brcm_nvram.c
core.c nvmem: core: update raw_len if the bit reading is required 2025-05-29 11:01:57 +02:00
imx-iim.c
imx-ocotp-ele.c
imx-ocotp-scu.c
imx-ocotp.c
internals.h
jz4780-efuse.c
Kconfig
lan9662-otpc.c
layerscape-sfp.c
layouts.c
lpc18xx_eeprom.c
lpc18xx_otp.c
Makefile
meson-efuse.c
meson-mx-efuse.c
microchip-otpc.c
mtk-efuse.c
mxs-ocotp.c
nintendo-otp.c
qcom-spmi-sdam.c
qfprom.c nvmem: qfprom: switch to 4-byte aligned reads 2025-05-29 11:01:58 +02:00
qoriq-efuse.c
rave-sp-eeprom.c
rmem.c
rockchip-efuse.c
rockchip-otp.c
sc27xx-efuse.c
sec-qfprom.c
snvs_lpgpr.c
sprd-efuse.c
stm32-bsec-optee-ta.c
stm32-bsec-optee-ta.h
stm32-romem.c
sunplus-ocotp.c
sunxi_sid.c
u-boot-env.c
uniphier-efuse.c
vf610-ocotp.c
zynqmp_nvmem.c nvmem: zynqmp_nvmem: unbreak driver after cleanup 2025-06-19 15:32:34 +02:00