Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp893205imu; Wed, 23 Jan 2019 07:29:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7c4elAbb7vfHshbWdyq2st/cyQ02VRNEB3cUxyVr+Aqhmb5364spFwEIwl4+jDXyzRr69G X-Received: by 2002:a63:ab08:: with SMTP id p8mr2290454pgf.87.1548257383211; Wed, 23 Jan 2019 07:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548257383; cv=none; d=google.com; s=arc-20160816; b=TDAbzd9HRcI0hzWQ4iOXuweOGI7wZcHvj+c0jlFSv1uJHlWfCX+lwKy4/CjCrqCcMK wxAidiGdhOAdKr88R6GJABTF7YAVyvkp7Ar6kKzD6kggeXZ+xiQhuCUftA1L3mty3JrF sd4OhK9+VtOen6+dOYJHen7UREeim01DGUcIKeh+RKTwCzksbAbJ61DBwe14cnUOAtJN fOEKMT/vfoIDlRcCT2/NMwUkUlqjn5AekloiFPDk6oAacfKzvrhUdc36cD9dGOJvdBM1 8bTS/ce05ViLWG9Hvbrxn5HMB3r8lgXpwzAaLHfgyUGJkPibWqxGFw2mODs9cs5zNzks 9nbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dYpHC0eFfgfiP/v5zSDaYT6m96U+a6iTQdTmvMW8q6I=; b=ncasPOQwFDnrtcP4XeoOMhOWXhcdgB1lunQSd3D9/hd27TFExUODCVf7m50XcZqAoi iLV3XU90i4RmBwzLhVo9Q3LJezPKsMK+SUP5prDUn0O22vniFoumx2jJljJfAPcFCifO irSW9rRYmfTOEde4CTRkJ0K2qctz2u8m8qXcfeNQrdk0PBMR0+NQRXVOJ1R0q4fh/RaA zbzXFk360ExO+L6aV1K33F2xvZJE0jPHk+vVvS6wz3cNqe9UqlXOuRmy8OnexkvACw4A F+55LLNSMbjdu14ke4UZkgtcJH2l1JUzhI9k/r2Lyklxjrx0xyflax04h/cAmMnO4mKD fiDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D+6WJkTR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97si18441095plm.312.2019.01.23.07.29.24; Wed, 23 Jan 2019 07:29:43 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=D+6WJkTR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726362AbfAWP1h (ORCPT + 99 others); Wed, 23 Jan 2019 10:27:37 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:45358 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfAWP1g (ORCPT ); Wed, 23 Jan 2019 10:27:36 -0500 Received: by mail-ot1-f67.google.com with SMTP id 32so2194019ota.12 for ; Wed, 23 Jan 2019 07:27:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dYpHC0eFfgfiP/v5zSDaYT6m96U+a6iTQdTmvMW8q6I=; b=D+6WJkTR5fCtbRLAGcaLmJ53KCYTxvIqk0WAN4hqrqvuaak9DG3mfO9fydZ14YVAN9 HnGEJx3OZnfXVqrPj2SRN2nCgR0bWaQJzhPVpSf1kaoYAHlhdm1pirYM9xCFlmaXmVgP HfRnJcTrEyKdqKw029R5YPcQ+Swzik4xhRezVnFTsN8Pn7PAyhZfr+zNM2lrpwCnT/yY cgRO9HmmKj6NxQlUCeskMQ3FtlImhtsN5LOHh36PVsJ7qf8LzrCCxbcivMuccsGe0FQN 6y/IB2y9r8tlYv9GiTiwc0yiej69u+X+cLfSKmuALn6ZbHmzLNCn1PJWkQYGfCGjdRJi vtsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dYpHC0eFfgfiP/v5zSDaYT6m96U+a6iTQdTmvMW8q6I=; b=R6ycA7jiq/OWjxHYG8yiuwhlnnOO00Yu3RRfNnPitVckK7NAiOiRNiHEMRTrrhm/ye euo//K+/bggY4Fv9rid0nKlfY1Uh1ZYu8Rw+8XNiiWLRsroEiecEwpX7ikIaV2eHbNK2 SCfiAUszgvf92lMWMPTaCL1EyNZ36RCOfLyWvEyRBwrZXkV2cyGsqlswZkNZ2IxYKb5h UwT+svg8etfmIJwgVd+GEunVoMVYnYKBFFqVlLoVHmLX0aQgT6iQDzzFkz7P6nEzzReJ JeX1smIzOGQtX5z+Ou7GoZjWuc/fw+Pwt84NNZVpREV+Dn+tYUw473vIrBkqruYuxwAx LG9Q== X-Gm-Message-State: AJcUukfhs0wYNveQGqWeX2hakcUMnw/MDfrXXOOauUF7mTGN95jKWeUK vOOQhDQA10idHnL4XQ+zl1eFLksE87sVnwnXHfbTQPDe X-Received: by 2002:a9d:6297:: with SMTP id x23mr1574564otk.63.1548257255993; Wed, 23 Jan 2019 07:27:35 -0800 (PST) MIME-Version: 1.0 References: <20190121183723.25231-1-martin.blumenstingl@googlemail.com> <20190121183723.25231-2-martin.blumenstingl@googlemail.com> In-Reply-To: <20190121183723.25231-2-martin.blumenstingl@googlemail.com> From: Anand Moon Date: Wed, 23 Jan 2019 20:57:23 +0530 Message-ID: Subject: Re: [PATCH 1/1] regulator: pwm: suppress EPROBE_DEFER error message To: Martin Blumenstingl Cc: Liam Girdwood , Mark Brown , linux-amlogic@lists.infradead.org, Thierry Reding , Linux Kernel , boris.brezillon@free-electrons.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Martin, On Tue, 22 Jan 2019 at 00:07, Martin Blumenstingl wrote: > > Suppress the "Failed to get PWM" error output if the actual error code > is EPROBE_DEFER. This makes the behavior of the pwm-regulator driver > consistent with what most other drivers do (which is: print all errors > except EPROBE_DEFER). > > An example where this cleans up the kernel log are the 32-bit Amlogic > Meson boards: > multi_v7_defconfig has CONFIG_REGULATOR_PWM=y and CONFIG_PWM_MESON=m. > When booting such a board (for example the Meson8b Odroid-C1) the > following message is printed five times during boot: > pwm-regulator regulator-vcck: Failed to get PWM: -517 > On the sixth call the pwm-meson driver is finally loaded (as rootfs > becomes ready) and the "VCCK" pwm-regulator comes up fine. > > Fixes: aa66cc6630a408 ("regulator: pwm-regulator: get voltage and duty table from dts") > Signed-off-by: Martin Blumenstingl > --- > drivers/regulator/pwm-regulator.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c > index 3f53f9134b32..7789d181ae67 100644 > --- a/drivers/regulator/pwm-regulator.c > +++ b/drivers/regulator/pwm-regulator.c > @@ -357,7 +357,9 @@ static int pwm_regulator_probe(struct platform_device *pdev) > drvdata->pwm = devm_pwm_get(&pdev->dev, NULL); > if (IS_ERR(drvdata->pwm)) { > ret = PTR_ERR(drvdata->pwm); > - dev_err(&pdev->dev, "Failed to get PWM: %d\n", ret); > + if (ret != -EPROBE_DEFER) > + dev_err(&pdev->dev, "Failed to get PWM: %d\n", ret); > + > return ret; > } > > -- > 2.20.1 > Please add my. tested on Odroid c1+ Tested-by: Anand Moon Best Regards -Anand > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic