lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200418192145.57fa291b@archlinux>
Date:   Sat, 18 Apr 2020 19:21:45 +0100
From:   Jonathan Cameron <jic23@...nel.org>
To:     Dmitry Osipenko <digetx@...il.com>
Cc:     Linus Walleij <linus.walleij@...aro.org>,
        Hartmut Knaack <knaack.h@....de>,
        Lars-Peter Clausen <lars@...afoo.de>,
        Peter Meerwald-Stadler <pmeerw@...erw.net>,
        Andy Shevchenko <andy.shevchenko@...il.com>,
        linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] iio: magnetometer: ak8974: Silence deferred-probe
 error

On Sat, 18 Apr 2020 20:12:44 +0300
Dmitry Osipenko <digetx@...il.com> wrote:

> It's not uncommon that voltage regulator becomes available later during
> kernel's boot process. This patch adds info message about unavailable
> regulators in a case of the deferred-probe error and also amends the
> error message with a error code.
> 
> Signed-off-by: Dmitry Osipenko <digetx@...il.com>

Applied to the togreg branch of iio.git and pushed out as testing for the
autobuilders to play with it.

Thanks,

Jonathan

> ---
> 
> Changelog:
> 
> v3: - Replaced dev_info() with dev_dbg().
> 
> v2: - Replaced dev_printk() with dev_info() for the deferred-probe error,
>       as was requested by Linus Walleij in a review comment to v1.
> 
>  drivers/iio/magnetometer/ak8974.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/magnetometer/ak8974.c b/drivers/iio/magnetometer/ak8974.c
> index d32996702110..372c80c25dd4 100644
> --- a/drivers/iio/magnetometer/ak8974.c
> +++ b/drivers/iio/magnetometer/ak8974.c
> @@ -746,7 +746,12 @@ static int ak8974_probe(struct i2c_client *i2c,
>  				      ARRAY_SIZE(ak8974->regs),
>  				      ak8974->regs);
>  	if (ret < 0) {
> -		dev_err(&i2c->dev, "cannot get regulators\n");
> +		if (ret != -EPROBE_DEFER)
> +			dev_err(&i2c->dev, "cannot get regulators: %d\n", ret);
> +		else
> +			dev_dbg(&i2c->dev,
> +				"regulators unavailable, deferring probe\n");
> +
>  		return ret;
>  	}
>  

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ