Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751803AbdLLDJd (ORCPT ); Mon, 11 Dec 2017 22:09:33 -0500 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 Authentication-Results: spf=softfail (sender IP is 192.88.168.50) smtp.mailfrom=gmail.com; sony.com; dkim=none (message not signed) header.d=none;sony.com; dmarc=fail action=none header.from=gmail.com; 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> User-Agent: Mutt/1.5.24 (2015-08-30) X-EOPAttributedMessage: 0 X-Matching-Connectors: 131575217611745184;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(7966004)(336005)(39380400002)(376002)(346002)(39860400002)(2980300002)(189003)(24454002)(199004)(53936002)(55016002)(8936002)(229853002)(68736007)(105596002)(83322999)(33896004)(46406003)(9686003)(33716001)(50466002)(47776003)(59450400001)(97736004)(81442002)(87572001)(73972006)(77096006)(104016004)(356003)(305945005)(97756001)(81166006)(5660300001)(76482006)(33656002)(1076002)(23726003)(86362001)(2906002)(4326008)(83506002)(575784001)(106466001)(58126008)(498600001)(6666003)(8656006)(76176011)(54906003)(8676002)(16586007)(82202002)(81156014)(73392002)(2950100002)(6246003)(110136005)(316002)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR03MB2697;H:tx30smr01.am.freescale.net;FPR:;SPF:SoftFail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD044;1:GXj3Uh4aJxZWVl4vaurhD2tID5gPbv11tUjDMJK08A6+zbs5jZ7pN+MyLOxzfXNzIR3MFZYOK6hI7Xu+NXW3cJya2a9jGa7aTFP2A8dxgI4Uw0cmBC7w6BdL49A8J8O/ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 35e465c8-e2b4-4d0a-c640-08d5410dbd72 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307);SRVR:DM5PR03MB2697; X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2697;3:Z/n52sgDT3Afx0e9NuaZbON0dgSu8VzpNFtIazIth1/qU4T6OakZIuEOJjR23NfAY81BHJ30OLcKxAhqx3RpmvaEd056gy/YGoe7DRVGVWbF61CRmBP1LMlbqyT2NoFOwM4HqIfWznZrlt+4iWX9fuyDAySIS5vSzW46gJed0j2Z+02cnTHtnevyf/8E/E5S17Fn0GmAjFVKgAISOcscLW2iRIAC8mBeoF89f6NiCv9XNb3/izVwSC6iCXBd8l2be1mq/lZfeOnlI6vVjRCp+j7H7maUlTPs0Dn19SYaxXA7eYWiWZ1QgV5+VXsKymO1QwIvmZ/nOIV6m8fatZxAB9anqlboanFNR12VGSo5ktI=;25:U0WeCYiksvhG0+whAdjqSck/j3IHeVbT9QapR7KNJpOY6WIZRZe/wozrgXSH4Im7rzyuyuG7lh3bgFP0VE6bADbOvFQ9xtVYxCFf3xYQl39gNpVS/yAyt4YnZEzQw35InM1YRHPSOppPqx8tIGa9z83VLgGQDHuMSYfreiNALoU5kSeBKDAtCqk10igxsK02wQ85NhkAihQ7rPU+7bs+tMiUNHOJKTEAiN/AvAOt9E2gptKA7hqFbCzstSE4u3e0D+p6Y08MCjOR0vWUcY8jST4Z3JBu7aLxuyIBsY5A/FllqNfM7tFheDunvjroJTdEtZEvGHkXVRKqzsfF+kuL+g== X-MS-TrafficTypeDiagnostic: DM5PR03MB2697: X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2697;31:bRZBPI3gxQgZH0NO/+cx83GaAEQOzHJTAiyHnQ4epeCPqzo11E3T3Bhb5QJ+dlAa0c7thTcvRG11pO78hZS0TW71nZVTVDbzNNaOB/mb/9bIu20EZhx3rpCbUHpf2M6Rqexvz8j3zNaL5LtQMyipKuHEZXxyoN062japX00XcG93XvCMfcY6zNF4XENyRvDVJ2PEqM/RIjRyWvUSmIwjimuZqbfINZajIYkYfZVp12A=;4:WnDFesMpljIuAooDOr7Z1oLTm6oaJU0BnSagC5LnE9B3pKfsBaI4r2bW5h9jVV17YIEdLjw7Ce5whKQV/HeaG8H1pRGgcs0fdNlY7/zjEz4OUaLBqNRPoDqtr5F8a/Htv+wkasYnfjyn+pbpbjwrn4B/5/IZU1Es0ZB/gk05urNlwxEuCrGpQ/F5dyzzAAy956PmF5uY/pnZdrFpyBL7gFIydItapq474YIQnXskcn0bNpMMFdukohJhIlIjB7U8Mwlt4vjbq7LykiZoT8qVtZ7IhJfyrbpKL+ty+Ri1In7S8OU+zbU712Dv1DHkE3bLBk0oj01izPaqoVkP7H99KCzyV78bs66bFpCtxeAfFdY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(182409339516656)(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231023)(93006095)(93001095)(6055026)(6096035)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123561025)(20161123563025)(20161123565025)(20161123556025)(201708071742011);SRVR:DM5PR03MB2697;BCL:0;PCL:0;RULEID:(100000803101)(100110400095)(400006);SRVR:DM5PR03MB2697; X-Forefront-PRVS: 051900244E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR03MB2697;23:6dU3I3JbgO8eOr+tDwwR5Al7os22yv3MFwfskVLEl?= =?us-ascii?Q?QUNz/SbisDA4PLg0Yu6hkfP/2vknFNkX3tsaHklh2Mq1mCSeZOQ6znNvDcLN?= =?us-ascii?Q?fliNukR9V2af09SeO3RICE6GthbRBUcGPa1ZBRRtmTD3l052wfF8sX7s3Rup?= =?us-ascii?Q?wQTv8WwddDvoGWBbpVNwxA7TkBgTuN+OyStC5tg1h8Vcqznd0VsdiSSgvjCp?= =?us-ascii?Q?2Z0y/9sAaqoH6ESlohywRShO3LBkCapeIhSy/+1dt3M10uChCpVopgp0QFBo?= =?us-ascii?Q?NzU5F4AbQgg2z0PQZxKzpPv3iVng8wF9IZ4w47J5KbcKU6tZHy/42bj1MpOW?= =?us-ascii?Q?BoZf49B/k3CCO/cCuU7dK/FziJpUQiA/6Lqqz0K43xudGAW/zzQOiGmYfXvJ?= =?us-ascii?Q?TKvjInl1L7b7IPcIZUBhKgDtS0dtJd4hplp1QGhkiKiUB0u59mj35MMIw7qJ?= =?us-ascii?Q?h9Ok5xnw+FJrZYknEMRMZHDdjlU573C/R2ZLExYDTuWgT4l4O1OSlke5QNtF?= =?us-ascii?Q?dEI4GSd/w53vHRmdUBJVlmJWw8dFikphm7U4zH2SMe+xn2jDfYRpx60ApkOL?= =?us-ascii?Q?j+SaEMrkx4v7LZg/OIVumvx+sUTiRhSkT8RgBwoavz5Xz5hJJgsRSwYYoflX?= =?us-ascii?Q?GLLbSOsgbAgL5lBoy4g+0MfoTh+lQSO2weUqY59gDYmMe1JRJSbASdNgnn7P?= =?us-ascii?Q?qgsF+H3Goyow7jgoVpV27/x4is4otprYQxBAjgt0wapTZx7KE7eniN13D4wi?= =?us-ascii?Q?+xKPdtVl/VXonjx2CkLahu/Qx4JtnRVXgoTGlLQNV4mCVP2YQ7HUnH11DNFy?= =?us-ascii?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alCHHXJt98fZgVsQKwu1MeyZ/KslLV8UFaR4OuOUa0oZhnUBezEdqOVoxC/PdcNf/767P0ux/5geVSq6VEXBw=;5:HRhGuFHynmNLdCbOrYMT4gfIydTcrsvba/houGF/WmMXb899NUFeQPoYZ7jWGn39gnbVDIDsJXP7y79TuBPJFcV54cRJd1rTn/U7D9tPBJZmAwIyKYLg9NVoIivkDre9gE8jCl6QcA5WmEgh4D02Gn6PS2Y1VXrdHaxb8/QhhAg=;24:1TxwOaGMwsmDbtybKiFAV41vQyMLqwBWP+DNFzmlyV/Wr1SN2CcJHBId3FMwr+B1aDhhKx81UinutwCnnwFrwdxer2M15JUb7S7pTY3ywso=;7:E3V0n8nA+dSvsQ8LDAMwDvjNJWX0WdjFsEK2xvC+yvtDHzwX/vUuYr21fSv2h20VtIXg4jsF6MwnmrxH7BHpirexPIHPf5vaAnJbN8fs9iOaIAmmtbwCJpJgS2Cu/siy160lC2aWhzV2trVFZW3BLGYg7EgWIP3rGL6/zeOdqPAEKUEM3TpMN+o0YfGf4MtDsNRvjQ+RUfxGNjz4crIqPsUev9glYBDiwg1kvisqNWNFVOvXbZ0Fq8KcsAGnDqxd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2017 03:09:20.9717 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 35e465c8-e2b4-4d0a-c640-08d5410dbd72 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2697 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1458 Lines: 37 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