From patchwork Wed Apr 17 08:54:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 162398 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp5234092jan; Wed, 17 Apr 2019 01:54:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6IlGWMW4uge/6cf24XNQtiy5+civ21UskHpAvOw3eUW2pDZrlRgyFY8GluBPCDAaYPCYD X-Received: by 2002:a63:330e:: with SMTP id z14mr79651209pgz.4.1555491261861; Wed, 17 Apr 2019 01:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555491261; cv=none; d=google.com; s=arc-20160816; b=wVtnnyoxux89NLhnK/u52iIreAipvtiChahEltAckOrWVqtt+IpVlLBJkwOR7Pq2jl 77xhk8GSJVSylJLpKcy4GB4/+xUSJCM88h8FDPkOtNwlaj0auPfYAVZOUfozxleKhUQm IjXyzaGufmxx1avgwlZvNuxs9+jiYmT61VzzqU7d0aZLjFHYZrDEuiBvByG8rLkHdqFb LioUQFe5DSmhgLPrXK+ago+mV8gySiksZzR77JabPpuHsTscy3NVvcGfoNqW4SBlQOp2 NjJ7FfQpF4qNK7NKd0S2TrhSYr1isn9vm0xSYhONCsxTLPEd2p+PVB1+bISex+qT/eze iLYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FbeBFpn+y42+bGubMile1GVQyTxVPR9FxPAa5oQU7cI=; b=BUMcWOK3/XX08SwXBcCRZbABgIStdjiWAgZcSqieFMIw5z+X2HRo7vCGSQHVjzE3vz FfjmzmJyur30BNBs521y+Y7nsIjTgM95Xk7BHB+GjDFywpU64xFlmybfttCq2/0mTKIG 993xzJl6RUvxBzXfPi0LDKqXxVJOUEq0STMgJULPWX1taE98a0iHAco+/8riL0OMSA1w tD6Aq8olRHUmwTeuFvW13oI0MR6naC9NIDvUtsNVau1m9fWRpBP1I9P0/d+ok4i7H1xV nDVmLXdzRXE03eNNvAKLdqnzYducsRAq9aVqjjY5EGu0Jlpyn35b7RC7ErWlaS5tr+cs xUpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LUdIgNlb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q128si48527016pgq.430.2019.04.17.01.54.21; Wed, 17 Apr 2019 01:54:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LUdIgNlb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728888AbfDQIyT (ORCPT + 30 others); Wed, 17 Apr 2019 04:54:19 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50804 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726237AbfDQIyT (ORCPT ); Wed, 17 Apr 2019 04:54:19 -0400 Received: by mail-wm1-f68.google.com with SMTP id z11so2410240wmi.0 for ; Wed, 17 Apr 2019 01:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FbeBFpn+y42+bGubMile1GVQyTxVPR9FxPAa5oQU7cI=; b=LUdIgNlbv3x0dDytjkavVezGXWrekvR4fZgMI2G64Q7bjpcVSkNXd1aJmBGsmo3LQ8 KVKvGGODA/sPSSLsi8oIzV3cj6Y8Ex1JnATJitL8VOiSdQiV8EO6Z9Q4Nmrf/JqJXEv6 V0Wu+U6bnjGUb+pvLi0tz7/YMYemhA2PZVCVomGIbtsHblmAwv99sVdftpzFAIgy8Gjz q2l3XRN1vFnTpT67IW/u5c4Q7wZIYM8PKRs5cCmGpxxOnIXrcR8mepKL73nP1nbD0BIz rDq5sPSIfyrSbYXB35RdAj0MGVS8/WFxMNexW4aS+BG/G1BK1bNVgN64mgcTPYJrohLY uOVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FbeBFpn+y42+bGubMile1GVQyTxVPR9FxPAa5oQU7cI=; b=Bfoa7NbuXqi3DQJvvlEXOX/9KODbrS4reSoC6WyIGzbdaR2qr+V8tvzdj4UxPLVnYf OQC7FqGbMcsTazVvTEk7QkGHP6OK1Yvywzoiphnqc6zbBrcdkg+Gy/iSCCndfeaDPa3X isPF/U6HpUZytqUXKK/e2cDJLnun8J8rEu9Bt9Xhs1pwwrYjOi7OgiH3pGZRcjyteAAX dDlrn48H1n9roFRTNixnkY19kUA+zMykwrQWgxifmCO85K5KRGaXviQGLXVPp8poglk4 hLKYH3KwG6PQ3g8A7wekYeZNz/DvI53+x9YoWnokcYZxU72MJzC2a2UFnLk1np7oYHMz vOWA== X-Gm-Message-State: APjAAAVH6ctOPIprvI/kQl73SeA/u9zrlGQPVu9y+OxW63Am6wyTsfcb ueq88D6nnVZ/DCfN1+4nO98oNQ== X-Received: by 2002:a1c:7008:: with SMTP id l8mr29497812wmc.49.1555491257501; Wed, 17 Apr 2019 01:54:17 -0700 (PDT) Received: from localhost.localdomain (200.red-83-34-200.dynamicip.rima-tde.net. [83.34.200.200]) by smtp.gmail.com with ESMTPSA id p6sm50111766wrt.4.2019.04.17.01.54.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Apr 2019 01:54:17 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, lgirdwood@gmail.com, broonie@kernel.org Cc: linux-kernel@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH] regulator: core: do not report EPROBE_DEFER as error. Date: Wed, 17 Apr 2019 10:54:11 +0200 Message-Id: <20190417085411.14552-1-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do not log a temporary failure to get a regulator (EPROBE_DEFER) while the driver is requesting retries. Signed-off-by: Jorge Ramirez-Ortiz --- drivers/regulator/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.21.0 diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 186a37675b50..0ca18bbdcd32 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -4342,8 +4342,9 @@ int regulator_bulk_get(struct device *dev, int num_consumers, consumers[i].supply); if (IS_ERR(consumers[i].consumer)) { ret = PTR_ERR(consumers[i].consumer); - dev_err(dev, "Failed to get supply '%s': %d\n", - consumers[i].supply, ret); + if (ret != -EPROBE_DEFER) + dev_err(dev, "Failed to get supply '%s': %d\n", + consumers[i].supply, ret); consumers[i].consumer = NULL; goto err; }