Patch "reset: rzg2l-usbphy-ctrl: Assign proper of node to the allocated device" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    reset: rzg2l-usbphy-ctrl: Assign proper of node to the allocated device

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     reset-rzg2l-usbphy-ctrl-assign-proper-of-node-to-the.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 1b856e2073bfd274d6e9592713c2e082451b1da9
Author: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx>
Date:   Tue Nov 19 10:55:54 2024 +0200

    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: 84fbd6198766 ("regulator: Add Renesas RZ/G2L USB VBUS regulator driver")
    Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx>
    Reviewed-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20241119085554.1035881-1-claudiu.beznea.uj@xxxxxxxxxxxxxx
    Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/reset/reset-rzg2l-usbphy-ctrl.c b/drivers/reset/reset-rzg2l-usbphy-ctrl.c
index 1cd157f4f03b4..4e2ac1f0060c0 100644
--- a/drivers/reset/reset-rzg2l-usbphy-ctrl.c
+++ b/drivers/reset/reset-rzg2l-usbphy-ctrl.c
@@ -176,6 +176,7 @@ static int rzg2l_usbphy_ctrl_probe(struct platform_device *pdev)
 	vdev->dev.parent = dev;
 	priv->vdev = vdev;
 
+	device_set_of_node_from_dev(&vdev->dev, dev);
 	error = platform_device_add(vdev);
 	if (error)
 		goto err_device_put;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux