From patchwork Fri Mar 31 19:25:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 9657199 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 242A060352 for ; Fri, 31 Mar 2017 19:26:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 157181FF73 for ; Fri, 31 Mar 2017 19:26:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09953286F7; Fri, 31 Mar 2017 19:26:58 +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 87F22286F6 for ; Fri, 31 Mar 2017 19:26:57 +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=LlnzJI24VnYsFYGsobboLdJC13m68T2CBLn5CpQV6L4=; b=erIPpt7StN3/7+ 6N6E0Pzu+VtRivUPttVP92gwekGL9Tt1LMGBZrc4N2z80aQ//UDLioNg7QUaGBGueDjjY05IsEIit iZC8VNUgv1SGVZDjSrw13i1/1b92GtdHcj/+1eNWwM0vcNMBsZ0SiQ4hI/63Ud+E0rG/aSuT1XlS6 AaO/Q2fDGqGgKs/Tu2ykyI+bAQfCUh1vVaDXnLbtlX2J85tq78EKaueDmaO4VxysyS5dQ+fXqQ4hj ZAHGbKBQ10T0O+U34935/NrneisU1Hdqc/uB1URO47PLobbo3lVYBHBScMeaz9PR7EJIrF0ti/0aC QDpWZTRrzDFwS6Gic6uQ==; 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 1cu2CE-00024U-6s; Fri, 31 Mar 2017 19:26:54 +0000 Received: from mail-by2nam03on0044.outbound.protection.outlook.com ([104.47.42.44] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cu2Bo-0001g9-1V for linux-arm-kernel@lists.infradead.org; Fri, 31 Mar 2017 19:26:30 +0000 Received: from BN3PR03CA0070.namprd03.prod.outlook.com (10.167.1.158) by BL2PR03MB386.namprd03.prod.outlook.com (10.141.91.150) 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:06 +0000 Received: from BY2FFO11FD022.protection.gbl (2a01:111:f400:7c0c::140) by BN3PR03CA0070.outlook.office365.com (2a01:111:e400:7a4d::30) 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:06 +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 BY2FFO11FD022.mail.protection.outlook.com (10.1.15.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Fri, 31 Mar 2017 19:26:05 +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 v2VJPv5f028835; Fri, 31 Mar 2017 12:26:02 -0700 From: Leonard Crestez To: "Rafael J. Wysocki" , Viresh Kumar , Shawn Guo , Sascha Hauer , Mark Brown Subject: [PATCH 1/5] ARM: imx: gpc: Do not print error message for EPROBE_DEFER Date: Fri, 31 Mar 2017 22:25:36 +0300 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-EOPAttributedMessage: 0 X-Matching-Connectors: 131354619657958285; (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)(39400400002)(39850400002)(39380400002)(39410400002)(39840400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(7416002)(356003)(39060400002)(305945005)(38730400002)(5003940100001)(4326008)(50986999)(76176999)(53936002)(105606002)(106466001)(33646002)(8656002)(54906002)(77096006)(5660300001)(189998001)(104016004)(36756003)(86362001)(85426001)(2906002)(15650500001)(8676002)(50226002)(81166006)(47776003)(118296001)(81156014)(2950100002)(6666003)(50466002)(48376002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB386; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD022; 1:W01vCnF1+syjWH49vUnyv4zigpM+bFj4wfowGPJanzMhj5FrBi8pj9l7+xS4H/eWncDpH4J9UbAwLwLZ2CNP2pjeuK1LpSx+RUMeP/OdFvhz47u/ERZ7vP6VtaqmkbqCd/HwYLpcIKBy8tRU0Uxja2fwoMToSu2FBLI5ckR7GUMBCnmvrc2vi1rCyciVOwHAssNC1+AR6sAOV+9o5Mc2LPGdqZ8TMrmDWUqLUgOt36mJpwZ0MjPFPPc9iPVT7YX1NKQDA96aiCSoI+SYVOs6gMMw+o+fciWoKOqiiJexcR04lEEuZUk7y5L0xXGVvXngV78LRptVxTZU25ln/g4WUPFRofFEPf4Mbt3ti/7jWc4xmwn9BxzLiLaiCqzBp5hksTmH+3aUF8UHnnqu9z/tHoTwZkv0qJB8QJZFUvGgPhOmRDdwOldKZxGaKEnl7rvBnUj2pdmu5iJ8zkAQme09kyktjUBB0JCL1n+h20DajhZKu1Hq9bOHsHelrvnCkqw3Ih/zg1tQl9l0sE73A92IEtvONRnimeyFVJab/Hb2TU7zhngakUEMoPmAGBlEe95x/7oDUTvlTtldny52s8zhWpAA4sTqldFVIBOs407vT7S3MLi4XbuhkLrO3INCbIAu MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 02dad2a6-fabb-4ed3-b38d-08d4786bc6c8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255075)(201703131430075)(201703131517081); SRVR:BL2PR03MB386; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB386; 3:3Fq4JbxEpO06mDNhJZvv5eQsrgJMHcpHBg+BTnjIPIis6pmYvbKA5QhLxPoJbctdnW82INFEX9v/UYa5qPP1c4B2vIFQo3rZ+9kXV2cAbJcYcUPLpZiEKODhBEqtqb2HqrwIYjZWDThBpRoUxLY3DBJukBHiltcePyNFlAJHXHCU9BjGHr0tWbIKLwzSIFDt+7hOhADvBUyZn13pHw4A4MVvO+2AO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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)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123563025)(20161123561025)(20161123565025); SRVR:BL2PR03MB386; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB386; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB386; 4:GYpQKCEgnIJ0zp+QJd63BAyBeygfEamIOj/GU7+zW1F3UiNmSmGI2B23qISJ13XWPKEstM1MN/JQzYanylEuYpzk8uCGKuVLOFDVUPiaDMIVH4Py/7ht0ASiC5NoikhocCsTpIa3ePmqwrjvuTJ9m9wCP/C3zgDfnpqawirZbQNAiI11gSS2MRPWFXoh7XNGJemLkrFfp0croRz6GJ+ca3q2qK/mq2E3zzJpapFRfNPNfXMmoVSDWotSjXXSL9BNjE6fDJ62Y7b8rqd48uVur8pUcPAsNkCcPO4LjyGvPjJ4Pexo+paBNSj7TmKU0JUBPtMhNLihgPs5REOqk249o1+GdBk+HifWoutlyMd/JbKl0LgzVgit0iL7Fl1t2Y2AOxL7uJxUFoh3GwKthrEN3zpg3Ykgud9jv3a74nEwOXe2ETTF1trops9wQnF5qlCBCTOGzc+W4+VpMeMLexSMlbAwoQCaKDEcHH/PX1x0nTl/zG4qVihdKvHQk7hlC6eezL8Qmo9/Q5Sy1mEwBFt+jOm9137oRA/+Iu5cFZa0jACscQzqzhCmBGyq+lZahcbyq05FMKV9TJV/webSDcDiCy4uONA3sMNQrbWtFzG6Uvd/AJeuZj88LfMs5fdCxJ8R2avtdxZcGkc+237p1GoNPJCO3yO3HsShdbIPrmKHptW3biw/DBgdVj+nuqZZm7/l25RrN03lRCwdI28nFddLQXB6v+eUaVpnG6x5ws8TyXXE/IRiDtX4kDCmgPmu9i8Wbn8FBCPSjThz7k+IthwXHN+9po6kAd1ptDoW6HdqG6fMeMJ+4wUNQN11i5cNAGYoSOBC32qDiXMTD/WIfkER8eGaWsyIhpuUQU6p9tiQZ4V1GrOcV7rxn8z/+HXj2///nx0Q9HIBd79Yf8OgwePCjw== X-Forefront-PRVS: 02638D901B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB386; 23:w6ol6i1Urgh48LBpM/cPXK53cuVWKPBisFa274Ajqg?= =?us-ascii?Q?6wcFnO1Ub86FK2/7FOlWTr5cXr//jNIHri+dZyVyFeAZ3j+lamNgKq8iaHfQ?= =?us-ascii?Q?er9YMjbo7qcXfXwF7yqvOs0Gv7aDyVvhX16VoiBk9vH0LFPxcUTB8JgmY0r/?= =?us-ascii?Q?HIuCtbQBimqGZZqq0bfcJqfnnPyY+f/jMC/jnyamdGJdRCKFOJyTpWieTOuu?= =?us-ascii?Q?A12IJAT6kWxzJBSHsVuwNgzH9RLSsFrUcQ7+R9U6GGzsSb0m4BJ1B/szK9Yy?= =?us-ascii?Q?97k5kKt4PTgfWl7KUdp90uV56qTSQVOkMZ4w9dY0yhJW2bO2yGlwvngH1pa+?= =?us-ascii?Q?ennnvD+mLmloqd5lSTroGH8DS8g9aDFG1M/z9xnX4VdqivZd7ut3Wl7mnSzT?= =?us-ascii?Q?4IpXNMb07yA4/0xvUvK6TfgtsVaebbfCE96MsuJfIP7DRo7fGF0KHmsB8+ST?= =?us-ascii?Q?jdDTgwCIzBme/95xVDsmDDiFMEImIHdOHge3M78R6IEsMZSNRqKe/bnaugiG?= =?us-ascii?Q?268W/kobq97pWF+2vRCcrZthSffqjqvufnjdPsvIEge4VOigZlKmWbDcqYKx?= =?us-ascii?Q?NIorU5Wl5sr4KxPdaUqIlcIsUnKvj1IpdRGVBSfQ2OaXrafQ6xrmVTIbcmEk?= =?us-ascii?Q?kr7Jtd52bSdqMH3OGhnAigUK02GSz/bl2fqTyf3qmB8drML7pSmQsdwq6Z87?= =?us-ascii?Q?l8LrZT/A1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6yTPQqgOKjLTiL/7I1om1XmdHv/46qfzCb9VyErDOU6AYNfQ==; 5:3MxpE1n5eCgCiXKR/6TMUI2hb+0HdjltJw4hNlksPhjqsWT9aoZr/9WUfCsRLI9iHUlUYlH0MWbUu+EuPtALu5m0cRWxoX8YSS8hGDoauk1I2dbcUFHN6JS6IQY8UOaUFQZZrFN0UDKNN2aC1Kaa49z/dlo1IkngGh4YBp2FbwD9pDBQdG1SiACrgN++ynre; 24:SK7nKVDjdEzksikYQGvVDEBgrDjQElR7l4QCxxDqdDbgAfcVacYSlvvdnrQR4ZEWsN7b5jeyFufVNKRvr9bhSits1dDhinx1ghJjgn3YfAU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB386; 7:W7Q9n/rRL8toT861W/vtcwgSZlC7Hyt34Y30nxYzOsyxjUmKVZrfs84GsXwWUDUd4CneVGz3g8JAJeS3IZqIuVxm0fxeU8UyQAnY5Aw+3ttbVkapC3sAf36vylTM0aZmH926CEtyADW+lEQtOLRj5iDs8LtJ+2F7z2+1FWJ1HTgOfB9MmRnzVVzPyFs/6lLrYzeFlrTK04PkqECRb5q0Xs+HhMWathTtbOVnaB7uzJEPZ5FllXC5rbv9/u+CE9XKyMdb0D7p2/fmJmNQsOJU7wxaCVunaiSKzoDUNgMsBPt9TTHkdFG+Urifjz2IyWt6p8TkowkUWCqmYfEv3OluTg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 19:26:05.5462 (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: BL2PR03MB386 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170331_122628_195136_BFC55E04 X-CRM114-Status: GOOD ( 13.67 ) 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 The pu regulator request will return -EPROBE_DEFER if it has a supply from PMIC and this supply is not yet registered. This does not represent an error since the driver will call probe again later, so only print a warning message in this case. Signed-off-by: Irina Tirdea Signed-off-by: Leonard Crestez --- arch/arm/mach-imx/gpc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index 1dc2a34..ce64d11 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -466,7 +466,11 @@ static int imx_gpc_probe(struct platform_device *pdev) pu_reg = NULL; if (IS_ERR(pu_reg)) { ret = PTR_ERR(pu_reg); - dev_err(&pdev->dev, "failed to get pu regulator: %d\n", ret); + if (ret == -EPROBE_DEFER) + dev_dbg(&pdev->dev, "pu regulator not ready, retry\n"); + else + dev_err(&pdev->dev, "failed to get pu regulator: %d\n", + ret); return ret; }