Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759683AbcJ1LxO (ORCPT ); Fri, 28 Oct 2016 07:53:14 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:41671 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756478AbcJ1Lwv (ORCPT ); Fri, 28 Oct 2016 07:52:51 -0400 X-AuditID: cbfee61a-f79926d000005981-ad-58133c11491c Subject: Re: [PATCH v2 2/2] arm64: dts: hi6220: add resets property into dwmmc nodes To: Leo Yan References: <1472094041-5357-2-git-send-email-guodong.xu@linaro.org> <20161028072640.GB17266@leoy-linaro> <20161028073830.GC17266@leoy-linaro> <24930ad4-313f-a4f0-c89a-770238863816@samsung.com> <95e22336-0465-f1e1-71b8-548d0e6ee8b7@samsung.com> <20161028101919.GA25564@leoy-linaro> Cc: Vincent Guittot , John Stultz , Guodong Xu , Wei Xu , Rob Herring , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , "devicetree@vger.kernel.org" , Xinliang Liu , linux-kernel , Fathi Boudra , LAK , Ulf Hansson From: Jaehoon Chung Message-id: Date: Fri, 28 Oct 2016 20:52:49 +0900 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-version: 1.0 In-reply-to: <20161028101919.GA25564@leoy-linaro> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIIsWRmVeSWpSXmKPExsVy+t9jQV1BG+EIg1cXpS3eL+thtJh/5Byr xfMpbUwW/+/0sFqc+a1rMXnrJTaLTY+vsVpc3jWHzWLp9YtMFhevTmCxaN17hN3i+Npwi44j 35gtXn48wWJxdP8qVosnR6cwOwh4rJm3htHj8dyN7B6bVnWyedy5tofNY/OSeo/Pm+QC2KLc bDJSE1NSixRS85LzUzLz0m2VQkPcdC2UFPISc1NtlSJ0fUOClBTKEnNKgTwjAzTg4BzgHqyk b5fglnG68QtbwUOuiu0dv9gaGBdydDFycEgImEjsui3YxcgJZIpJXLi3nq2LkYtDSGAWo8Sa zy0sEM4DRolL948wgVQJC4RJ3Ns3lxGkWURAQeLfSkGImkZWifurJzOBOMwCn1gkLm+ewwrS wCagI7H923GwZl4BO4kL746DxVkEVCVetxwGGyQKNPR5oxNEiaDEj8n3WEBsTgFDiV/THrKA lDAL6Encv6gFEmYWkJfYvOYt8wRGoCsROmYhVM1CUrWAkXkVo0RqQXJBcVJ6rmFearlecWJu cWleul5yfu4mRnD0PpPawXhwl/shRgEORiUe3ghGoQgh1sSy4srcQ4wSHMxKIrxfLIUjhHhT EiurUovy44tKc1KLDzGaAn0xkVlKNDkfmFjySuINTcxNzI0NLMwtLU2MlMR5G2c/CxcSSE8s Sc1OTS1ILYLpY+LglGpgPL3roNvpc66b+p8xV8faxJ6/XD9BbXvev6Jdiq0P/hyYt2W2qaJd OfO90qLA779YX7At/b0+NPL6krBiTb7Ijboh+c32lhPrV5l+ur9vSlD3NBvz9hw7k10lQioz 04wffJf7sPeLiXfmoVPV56fNmnb3dvWTZa+WfbP/vOS7ln+BYGKUb2RXjRJLcUaioRZzUXEi AJLzUXb0AgAA X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1331 Lines: 44 Hi, On 10/28/2016 07:19 PM, Leo Yan wrote: > On Fri, Oct 28, 2016 at 06:54:58PM +0900, Jaehoon Chung wrote: > > [...] > >>>>> Could you share the log? Is there any log about failure? >>>> >>>> Sure, please see below log: >>> >>> It's related with -EPROBE_DEFER..I'm not sure but if CONFIG_RESET_CONTROLLER is enabled, it's searching for reset controller. >>> Maybe hi6220 has handled the reset controller(?)... >>> >>> I'm checking devm_reset_control_xxx...It's possible to occur the other boards which enabled RESET_CONTROLLER.. >> >> Could you check the below thing.. >> >> /* find reset controller when exist */ >> - pdata->rstc = devm_reset_control_get_optional(dev, NULL); >> + pdata->rstc = devm_reset_control_get_optional(dev, "dwmci-reset"); >> if (IS_ERR(pdata->rstc)) { >> if (PTR_ERR(pdata->rstc) == -EPROBE_DEFER) >> return ERR_PTR(-EPROBE_DEFER); > > Confirmed with this fixing, the kernel can bootup successfully. > > Thanks for this. Thanks for checking this..If this approach is not bad, i will send the patch. Or if there are other good approaches, let me know, plz. Best Regards, Jaehoon Chung > >> To prevent the wrong controlling, how about adding "#reset-names" for dwmmc controller? >> >> >> Best Regards, >> Jaehoon Chung > > >