linux-yocto/drivers/reset
Claudiu Beznea 40c28d1a0a reset: rzg2l-usbphy-ctrl: Assign proper of node to the allocated device
[ Upstream commit 1f8af9712413f456849fdf3f3a782cbe099476d7 ]

The platform device named "rzg2l-usb-vbus-regulator", allocated by
the rzg2l-usbphy-ctrl driver, is used to instantiate a regulator driver.
This regulator driver is associated with a device tree (DT) node, which
is a child of the rzg2l-usbphy-ctrl DT node. The regulator's DT node allows
consumer nodes to reference the regulator and configure the regulator as
needed.

Starting with commit cd7a38c40b23 ("regulator: core: do not silently ignore
provided init_data") the struct regulator_dev::dev::of_node is no longer
populated using of_node_get(config->of_node) if the regulator does not
provide init_data. Since the rzg2l-usb-vbus-regulator does not provide
init_data, this behaviour causes the of_find_regulator_by_node() function
to fails, resulting in errors when attempting to request the regulator.

To fix this issue, call device_set_of_node_from_dev() for the
"rzg2l-usb-vbus-regulator" platform device.

Fixes: 84fbd61987 ("regulator: Add Renesas RZ/G2L USB VBUS regulator driver")
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20241119085554.1035881-1-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-01-23 17:22:52 +01:00
..
hisilicon reset: hisilicon: hi6220: add missing MODULE_DESCRIPTION() macro 2024-06-21 13:49:25 +02:00
starfive reset: starfive: jh71x0: Fix accessing the empty member on JH7110 SoC 2024-09-30 14:24:37 +02:00
sti reset: sti: allow building under COMPILE_TEST 2024-06-24 09:50:31 +02:00
tegra reset: tegra-bpmp: allow building under COMPILE_TEST 2024-07-01 09:57:48 +02:00
core.c reset: core: add get_device()/put_device on rcdev 2024-09-02 12:02:41 +02:00
Kconfig reset: eyeq: add platform driver 2024-09-02 12:12:41 +02:00
Makefile reset: eyeq: add platform driver 2024-09-02 12:12:41 +02:00
reset-a10sr.c
reset-ath79.c reset: ath79: remove unneeded call to platform_set_drvdata() 2023-08-08 15:31:00 +02:00
reset-axs10x.c
reset-bcm6345.c reset: bcm6345: remove unneeded call to platform_set_drvdata() 2023-08-08 15:31:00 +02:00
reset-berlin.c reset: berlin: fix OF node leak in probe() error path 2024-09-02 11:51:19 +02:00
reset-brcmstb-rescal.c
reset-brcmstb.c reset: brcmstb: Use devm_platform_get_and_ioremap_resource() 2023-11-28 17:19:38 +01:00
reset-eyeq.c reset: eyeq: add platform driver 2024-09-02 12:12:41 +02:00
reset-gpio.c reset: gpio: Add GPIO-based reset controller 2024-02-21 11:53:25 +01:00
reset-hsdk.c
reset-imx7.c
reset-imx8mp-audiomix.c reset: imx8mp-audiomix: Add AudioMix Block Control reset driver 2024-06-24 11:27:04 +02:00
reset-intel-gw.c
reset-k210.c reset: k210: fix OF node leak in probe() error path 2024-09-02 11:51:19 +02:00
reset-lantiq.c reset: lantiq: remove unneeded call to platform_set_drvdata() 2023-08-08 15:31:00 +02:00
reset-lpc18xx.c reset: lpc18xx: simplify with devm_clk_get_enabled() 2024-09-02 11:56:15 +02:00
reset-ma35d1.c
reset-meson-audio-arb.c Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
reset-meson.c reset: reset-meson: Add support for Amlogic T7 SoC reset controller 2024-09-02 12:09:17 +02:00
reset-microchip-sparx5.c
reset-mpfs.c clock, reset: microchip: move all mpfs reset code to the reset subsystem 2024-05-07 14:57:46 -07:00
reset-npcm.c reset: npcm: convert comma to semicolon 2024-09-30 14:17:13 +02:00
reset-pistachio.c
reset-qcom-aoss.c reset: qcom-aoss: Convert to devm_platform_ioremap_resource() 2023-11-28 17:19:39 +01:00
reset-qcom-pdc.c reset: qcom: Convert to devm_platform_ioremap_resource() 2023-11-28 17:19:39 +01:00
reset-raspberrypi.c
reset-rzg2l-usbphy-ctrl.c reset: rzg2l-usbphy-ctrl: Assign proper of node to the allocated device 2025-01-23 17:22:52 +01:00
reset-scmi.c
reset-simple.c reset: simple: add support for Sophgo SG2042 2024-02-21 11:51:39 +01:00
reset-socfpga.c
reset-sunplus.c reset: sunplus: Use devm_platform_get_and_ioremap_resource() 2023-11-28 17:19:39 +01:00
reset-sunxi.c
reset-ti-sci.c reset: ti-sci: Convert to platform remove callback returning void 2024-03-25 10:14:03 +01:00
reset-ti-syscon.c reset: ti: syscon: remove unneeded call to platform_set_drvdata() 2023-08-08 15:31:00 +02:00
reset-tn48m.c
reset-tps380x.c
reset-uniphier-glue.c reset: uniphier-glue: Use devm_platform_get_and_ioremap_resource() 2023-11-28 17:19:39 +01:00
reset-uniphier.c
reset-zynq.c reset: zynq: remove unneeded call to platfrom_set_drvdata() 2023-08-08 15:31:00 +02:00
reset-zynqmp.c reset: zynqmp: removed unneeded call to platform_set_drvdata() 2023-08-08 15:31:00 +02:00