patch "USB: chipidea: msm: fix ulpi-node lookup" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
USB: chipidea: msm: fix ulpi-node lookup
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
964728f9f407eca0b417fdf8e784b7a76979490cMon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Mon, 13 Nov 2017 11:12:58 +0100
Subject: USB: chipidea: msm: fix ulpi-node lookup
Fix child-node lookup during probe, which ended up searching the whole device tree depth-first starting at the parent rather than just matching on its children.
Note that the original premature free of the parent node has already been fixed separately, but that fix was apparently never backported to stable.
--- drivers/usb/chipidea/ci_hdrc_msm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/chipidea/ci_hdrc_msm.c +1 -1
@@ -247,7 +247,7 @@ static int ci_hdrc_msm_probe(struct platform_device *pdev)if (ret) goto err_mux; - ulpi_node =of_find_node_by_name (of_node_get (pdev->dev.of_node),"ulpi" ); + ulpi_node =of_get_child_by_name (pdev->dev.of_node,"ulpi" );if (ulpi_node) { phy_node =of_get_next_available_child (ulpi_node,NULL ); ci->hsic =of_device_is_compatible (phy_node,"qcom,usb-hsic-phy" );
Signature · 1 line
2.15.1