From patchwork Fri Mar 31 19:25:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 9657203 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7077C60350 for ; Fri, 31 Mar 2017 19:27:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 627852817F for ; Fri, 31 Mar 2017 19:27:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 565062860D; Fri, 31 Mar 2017 19:27:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D4F782817F for ; Fri, 31 Mar 2017 19:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e6aMqbTqRrnnxTBwNZqiSZCHPipNFwRElA7Q6ktRboo=; b=c0Qg0yofsSXgAa uF4sLanPIlfn+RJ5GOOO1ZWBHlWZre8W2zRSgjkc81P2SghOaGZQ+FnItfAuu3zrQMRCBW/CZU7Sk AdwcqtMymQar6djP6I3GHMPOrQaNEwAx0hyRFLlYjVVmX7bzCuJu8OcYAknHOIgmmpPcHd3hwVK/V PJ0hBRlda2U81hQ+ukARYsMB6g2WanhAxKxss3ivowBrEtVDg73WowNInOJ0pPsKnTwK5bcj76P96 tVa6DgOurR4mxzv1EVLzsHs5QC1lTgwW4Vp5xGToSvMGFi5RXOgmW7nbeO6NlfzLtlLy7YWiTFpiS DbhoDzo8NLxy+D9NtQAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cu2CR-0002JF-7V; Fri, 31 Mar 2017 19:27:07 +0000 Received: from mail-co1nam03on0081.outbound.protection.outlook.com ([104.47.40.81] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cu2Br-0001gS-3h for linux-arm-kernel@lists.infradead.org; Fri, 31 Mar 2017 19:26:34 +0000 Received: from BN3PR03CA0066.namprd03.prod.outlook.com (10.167.1.154) by BN1PR03MB282.namprd03.prod.outlook.com (10.255.200.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 31 Mar 2017 19:26:08 +0000 Received: from BL2FFO11FD047.protection.gbl (2a01:111:f400:7c09::181) by BN3PR03CA0066.outlook.office365.com (2a01:111:e400:7a4d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Fri, 31 Mar 2017 19:26:09 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD047.mail.protection.outlook.com (10.173.161.209) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Fri, 31 Mar 2017 19:26:08 +0000 Received: from fsr-ub1664-115.ea.freescale.net (fsr-ub1664-115.ea.freescale.net [10.171.73.166]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v2VJPv5g028835; Fri, 31 Mar 2017 12:26:05 -0700 From: Leonard Crestez To: "Rafael J. Wysocki" , Viresh Kumar , Shawn Guo , Sascha Hauer , Mark Brown Subject: [PATCH 2/5] cpufreq: imx6q: Fix handling EPROBE_DEFER from regulator Date: Fri, 31 Mar 2017 22:25:37 +0300 Message-ID: <36c230773c14d37037dbe8cadf4f99b0d875e679.1490987945.git.leonard.crestez@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-EOPAttributedMessage: 0 X-Matching-Connectors: 131354619691245663; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39850400002)(39450400003)(39400400002)(39410400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(50466002)(7416002)(104016004)(118296001)(48376002)(305945005)(8936002)(6666003)(76176999)(2950100002)(81166006)(81156014)(50226002)(189998001)(8676002)(85426001)(38730400002)(356003)(77096006)(36756003)(4326008)(39060400002)(5660300001)(50986999)(54906002)(106466001)(105606002)(53936002)(86362001)(5003940100001)(47776003)(33646002)(2906002)(8656002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB282; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD047; 1:jVgJYHjxWsU0befZS8XYuE9Nb7WXjnCgVAsH8C9HHYbnKv527lUKDiftXAlFq/ywu/9M8ErUoZBhzZy+LJF/ufInrlYkiq3rLpRbSF0+CNIRgn7tRkprsqXOY1TcJhPoYuG4+S9o4TQSbptIQWgX4em4vJ8fSGFFsUblaJL+hFWPqyqtUMzLMdKvRWQHpqeBZfYob5A0sCda84pWteP+y5rmIw7PyS57dVgwXBXWejUMLP8+DwP1uFVoEq0g4lLWxn0QZ4fvprXotN5bru2fSVqrGgN81sKRZbgWcjECrPviA9dq9u0MXzn2aoi/aEzC6f+gitqJ0SIZJcQOY4/sbr19b4UhkuKS8GJRTU1RiTefqCRxqkiv9O2O7ecQfA24lyIpw7HQa5zWYsCJNYJQgNhgx2/w69J5cSa3oRPQ2i6kw5qbc7di+nTv6arDRD87Jjo+Clnbmwg1ByLVmGhuNhDZwwG1Xr5//IOdba1KjUyGSb+SKHbJscEKDqizoUa66ifN/coEjYVTXb9dBkdMxKYDXDHnsepRSLc8u6ViG83N/zAG6W6RlrI5q3yO/dxyxUKSijTJ5TJS1BG0zcTyOQ79w9XNy7ru3HsjciQmzrk= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d54b5113-4d29-4c99-3f00-08d4786bc8c2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255075)(201703131430075)(201703131517081); SRVR:BN1PR03MB282; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB282; 3:628mJQzyQZi+EeB5KDgeyk7vcgxBHOBmJssOkrpsAsQ3k2Ec9o4Ur1uR07gTv3y4h2J8ayReFw6XDXrjj4lVwM68CmlUgvd2Q+uNeCIXTjbC0L2m5Hyw9RgI8/+YE6ysRsRn16Grzhv09AIsgAxCrJGkcuUVrts0QckcLMQ5epl+fjJNwDK4U4yxEhDpPCe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-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13018025)(13024025)(13023025)(8121501046)(5005006)(13015025)(13017025)(93006095)(93001095)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123563025)(20161123561025)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123565025); SRVR:BN1PR03MB282; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR03MB282; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB282; 4:LHslnvMa/cY355CzdV0kYvA6rpW2ntHqkNpcr0Jp1/8KiVTv7/83qH8ydnVhGoltwYG6TzvpwD7zA0ZAcUzqv9ClSVNMpmDtijEoqhGezXTgbHbJBQGoCFZW1GgxrtQ22Q0Xog+gOC/cbvjp31OnHM6MsARvRcZ+UiUvPjuxE6CKFgzIzuMmABmJCWx9oieGSfGGu3lK8knVTn6SvbEmdSySuM+XEVAEWBFq4qvcANmcumw8BAsYJDVLVHmJUMM+mfPNns3cLBQmO5cVlek+MxshBBF1kNBgXctHIjLoBUimjYpkth9IS/u/yTThq/UIB7NjKnRnjTG3GNBMMZ6Rsz+Ij3SS8xku67U/50vxODp0XTdKkAdi/0TsCkn9GmOKNJuDsly3pgi3KHexdfrfuJF3TexI8Y0kR4S+YGpCGxzG9acWnYkhCG474EqYPjFzWF7vcs2umqBvSXAF2IymOFyOvlTp25WDvRLPlhod4TyfIp/mTSC3h9J7ed/rhmxhTlmb0V0h/h3ERO9/gs+pXZDWvoZeGTuyZvE+iAwM5e+1srGcLM9abqyFrT1Vn+0lHhdbrWxPORomKkKSOz8VJgnFsaI0CmOPqhGud5On7XL8XXce6KXDxAYLKM7G26RNX9m8jr3DX0aDLat0hM/fk9o4ECeBBpWTNRKXgm0x2d9qHopYWW6V0AqB2tOJLDgm72ArkJ5j1dJEOK2N2sv8UBsfofTpDp9aUscA+pNZI1vgQDIxWNO3qBbctnRejton2CyO50uaUho9U52c40NN2H2pAEQh/MuL/PFPQN+nLY8am5KwC5jnjlH51DRqvDIzDcTiX+JacJ/d9GQoTrQQ5DqXYWUkUzyS4Xs6/vDsc/tTMqM88OmFzYzt/XLgbNII X-Forefront-PRVS: 02638D901B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB282; 23:0Hcx5oHGqKo5qGdKkgZVeu8mWXfW/OgE+Nh4GVxTWE?= =?us-ascii?Q?Wo3km6rI2GZ+k8+oqWfMGzZ/N2G7aEXFTtNMbNGfX7tVaic73qeiR0PZ4idn?= =?us-ascii?Q?c0FylTfyavMiIv7UWo8DTdlxe1DjlCiO5zEZzrIIGUtayPqBp6e4sKnBM6Nw?= =?us-ascii?Q?xwEeIBV/aMf77HWQwVHDk70mpGwjapwbXOBAKBrp8uIRwx8Zpbgvaxu8eSzk?= =?us-ascii?Q?uHi/GFFYaGviZl9keEI9VQAbkiM2PKJqSm19fO5FYPHoG5aQUdte/1dwuIvV?= =?us-ascii?Q?RPnnQU/VWi2qpL1lVg1X0maVAbhzYIUai7juIDqhIDb6ywFKPvDc0F6w8Etb?= =?us-ascii?Q?U3qSg+mIDdT94aJHS3mnNUooF9STHesWMKgCxQAO3kyljV4+ar+wYmAnrjGu?= =?us-ascii?Q?prPuTTHXfjx/dtbBRQy4j/T1bj1FMOkLbTj90nJbbPlg/74nZ6Ba1fDwmITT?= =?us-ascii?Q?El3ZigRogx6B3h0ZgMehcPpnPxiG0X2Ap4/EZHuNykt0/O8e3SIHdE3GPrbR?= =?us-ascii?Q?8QHJJJ+sjURap8R7bf3vI+mSYFN3XZbmr2DDvpyUMJo3GpJdd93NmXN+89qp?= =?us-ascii?Q?ccyXp3OumAuVw8tkPHM7H/8E3rcol2MdFhOj8OD5VT881av/AxcOtQw56NJX?= =?us-ascii?Q?82hZX+UlakcER6lbgLS8HHP1ZJVTbldeFo9P6qpnt50G1+OR8KxwtiW9fi2T?= =?us-ascii?Q?KjgKVNbwYdRYKaNUp8hwa0xpeVZot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hQ+GlrxcG8/Miz1VtHve0A33rg==; 5:IKnnMWG48HIA40qeawiU004gg9RqX68NTXjTzju8ijd4ROPonawgYUcNxNqRuuHU+UOXWS3O2kj7RkqC2UXhD4rDcwlvJ3fWRNVFRn+JA9+bl6xYwABltS5EyJTFpq9Lufopw10uPhlcccksa2EvhcfGNV/ZwY/+tPugdIgHCcmK2Xt2HH4PINPXFx4d2eIY; 24:AQhKOh3g/Jzjb3k3tswRDcXKBLPZ3VcuUISDGiLgXLq2yMi6t6Yg6EKnsvKgm43DCe5QsqNgj6DJCvpGNs96vuW+a6KyQxQdYmr4CdhtXj0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB282; 7:CGhGICFrzwO1P7YelKWGqXI/N5RF9hUmmOfNwwNrqNFt9F2ErdMoZanFxUsa1G6I0xMKZbCxYX42FWGG4j4FMrClU6MzGFg9XsBiea+KQg6f/Pq6WbpYf4pA5HeQgvWR4b4SandH1SKLPvfYkoOn2Hc3bu5gePsoLNaHy+UQGGhWcprUMWTjfat0kcj9R2hDfNhO2WbUO/ey5jetHXLAwsmrsCOqdqnEUSHvniVE38cY3F7ZbjjVrgMaym19kgOLFRbNn81g0LSm1D07LWTp9bKEZmZERkSjS/eSi2GAFRVxw9ys3qXHZhBoJNGbJCyKNUTFdaL64bBUmqpGPayn8Q== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 19:26:08.8905 (UTC) 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: BN1PR03MB282 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170331_122631_512297_853C8D68 X-CRM114-Status: GOOD ( 12.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leonard Crestez , Anson Huang , Irina Tirdea , linux-pm@vger.kernel.org, Liam Girdwood , linux-kernel@vger.kernel.org, Octavian Purdila , Fabio Estevam , Robin Gong , linux-arm-kernel@lists.infradead.org, Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Irina Tirdea If there are any errors in getting the cpu0 regulators, the driver returns -ENOENT. In case the regulators are not yet available, the devm_regulator_get calls will return -EPROBE_DEFER, so that the driver can be probed later. If we return -ENOENT, the driver will fail its initialization and will not try to probe again (when the regulators become available). Return the actual error received from regulator_get in probe. Print a differentiated message in case we need to probe the device later and in case we actually failed. Also add a message to inform when the driver has been successfully registered. Signed-off-by: Irina Tirdea Signed-off-by: Leonard Crestez Acked-by: Viresh Kumar Reviewed-by: Lucas Stach --- drivers/cpufreq/imx6q-cpufreq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index 7719b02..be90ee3 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -222,6 +222,13 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev) arm_reg = regulator_get(cpu_dev, "arm"); pu_reg = regulator_get_optional(cpu_dev, "pu"); soc_reg = regulator_get(cpu_dev, "soc"); + if (PTR_ERR(arm_reg) == -EPROBE_DEFER || + PTR_ERR(soc_reg) == -EPROBE_DEFER || + PTR_ERR(pu_reg) == -EPROBE_DEFER) { + ret = -EPROBE_DEFER; + dev_dbg(cpu_dev, "regulators not ready, defer\n"); + goto put_reg; + } if (IS_ERR(arm_reg) || IS_ERR(soc_reg)) { dev_err(cpu_dev, "failed to get regulators\n"); ret = -ENOENT;