Return-Path: Received: from mail-bn3nam01on0073.outbound.protection.outlook.com ([104.47.33.73]:3469 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750759AbdLLDJ3 (ORCPT ); Mon, 11 Dec 2017 22:09:29 -0500 Date: Tue, 12 Dec 2017 11:08:17 +0800 From: Peter Chen To: Johan Hovold , Stephen Boyd CC: Peter Chen , Greg Kroah-Hartman , , , stable , Frank Rowand Subject: Re: [PATCH] USB: chipidea: msm: fix ulpi-node lookup Message-ID: <20171212030816.GB22364@b29397-desktop> References: <20171113101258.3324-1-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20171113101258.3324-1-johan@kernel.org> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Nov 13, 2017 at 11:12:58AM +0100, Johan Hovold wrote: > 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. > > Fixes: 47654a162081 ("usb: chipidea: msm: Restore wrapper settings after reset") > Fixes: b74c43156c0c ("usb: chipidea: msm: ci_hdrc_msm_probe() missing of_node_get()") > Cc: stable # 4.10: b74c43156c0c > Cc: Stephen Boyd > Cc: Frank Rowand > Signed-off-by: Johan Hovold > --- > drivers/usb/chipidea/ci_hdrc_msm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c > index 3593ce0ec641..880009987460 100644 > --- a/drivers/usb/chipidea/ci_hdrc_msm.c > +++ b/drivers/usb/chipidea/ci_hdrc_msm.c > @@ -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"); Stephen, would you comment on it? I am afraid I can't find the benefit for this change. -- Best Regards, Peter Chen