Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1607173 > unrolled thread

Re: [RFC 2/8] cpufreq: imx6q: Fix handling EPROBE_DEFER from regulator

Started byViresh Kumar <viresh.kumar@linaro.org>
First post2017-03-23 05:40 +0100
Last post2017-03-23 05:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [RFC 2/8] cpufreq: imx6q: Fix handling EPROBE_DEFER from  regulator Viresh Kumar <viresh.kumar@linaro.org> - 2017-03-23 05:40 +0100

#1607173 — Re: [RFC 2/8] cpufreq: imx6q: Fix handling EPROBE_DEFER from regulator

FromViresh Kumar <viresh.kumar@linaro.org>
Date2017-03-23 05:40 +0100
SubjectRe: [RFC 2/8] cpufreq: imx6q: Fix handling EPROBE_DEFER from regulator
Message-ID<to2Hv-5vP-5@gated-at.bofh.it>
On 22-03-17, 18:53, Leonard Crestez wrote:
> From: Irina Tirdea <irina.tirdea@nxp.com>
> 
> 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 <irina.tirdea@nxp.com>
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> ---
>  drivers/cpufreq/imx6q-cpufreq.c | 7 +++++++
>  1 file changed, 7 insertions(+)

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web