Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1615840
| From | Lucas Stach <l.stach@pengutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/5] ARM: imx: gpc: Do not print error message for EPROBE_DEFER |
| Date | 2017-04-04 11:50 +0200 |
| Message-ID | <tstg7-33o-35@gated-at.bofh.it> (permalink) |
| References | <tstg6-33o-13@gated-at.bofh.it> <tstg7-33o-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Am Freitag, den 31.03.2017, 22:25 +0300 schrieb Leonard Crestez:
> 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 <irina.tirdea@nxp.com>
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> ---
> arch/arm/mach-imx/gpc.c | 6 +++++-
The driver moved places, together with a large rewrite, to
drivers/soc/imx/.
This issue isn't present in the new driver, so this patch can just be
dropped.
Regards,
Lucas
> 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;
> }
>
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 1/5] ARM: imx: gpc: Do not print error message for EPROBE_DEFER Lucas Stach <l.stach@pengutronix.de> - 2017-04-04 11:50 +0200 Re: [PATCH 1/5] ARM: imx: gpc: Do not print error message for EPROBE_DEFER Lucas Stach <l.stach@pengutronix.de> - 2017-04-04 12:40 +0200
csiph-web