thermal: imx: Do not print error message in the EPROBE_DEFER case
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/1 thermal: imx: Do not print error message in the EPROBE_DEFER case
From: Fabio Estevam <[email protected]>
During imx_thermal probe we have the following log:
[ 1.514819] imx_thermal 2000000.aips-bus:tempmon: failed to register cpufreq cooling device: -517 [ 1.515064] platform 2000000.aips-bus:tempmon: Driver imx_thermal requests probe deferral
Avoid printing the error message in the EPROBE_DEFER case.
--- drivers/thermal/imx_thermal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/thermal/imx_thermal.c +4 -2
@@ -513,8 +513,10 @@ static int imx_thermal_probe(struct platform_device *pdev) data->cdev =cpufreq_cooling_register (cpu_present_mask);if (IS_ERR (data->cdev)) { ret =PTR_ERR (data->cdev); -dev_err (&pdev->dev, -"failed to register cpufreq cooling device: %d\n" , ret); +if (ret != -EPROBE_DEFER ) +dev_err (&pdev->dev, +"failed to register cpufreq cooling device: %d\n" , + ret);return ret; }
Signature · 1 line
1.9.1
Hello Fabio,
Quoted 9 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
During
imx_thermalprobe we have the following log:[ 1.514819] imx_thermal 2000000.aips-bus:tempmon: failed to register cpufreq cooling device: -517 [ 1.515064] platform 2000000.aips-bus:tempmon: Driver imx_thermal requests probe deferralAvoid printing the error message in the
EPROBE_DEFERcase.
Thanks for your patch. But I am queuing a different patch that does a similar job.
Can you please check my -fixes branch? When EPROBE_DEFER happens, we are now printing a debug message only.
Cheers,
Quoted 25 lines
Signed-off-by Fabio Estevam <[email protected]>--- drivers/thermal/imx_thermal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/thermal/imx_thermal.c +4
-2@@ -513,8 +513,10 @@ static int imx_thermal_probe(struct platform_device *pdev) data->cdev =cpufreq_cooling_register (cpu_present_mask);if (IS_ERR (data->cdev)) { ret =PTR_ERR (data->cdev); -dev_err (&pdev->dev, -"failed to register cpufreq cooling device: %d\n" , ret); +if (ret != -EPROBE_DEFER ) +dev_err (&pdev->dev, +"failed to register cpufreq cooling device: %d\n" , + ret);return ret; }Signature · 1 line
1.9.1
Fabio Estevam
reviewerHi Eduardo,
Quoted 4 lines · Eduardo Valentin
Thanks for your patch. But I am queuing a different patch that does a similar job.
I am running linux-next 20141211, which has this commit applied.
Quoted 2 lines
Can you please check my -fixes branch? When
EPROBE_DEFERhappens, we are now printing a debug message only.
On linux-next I am still getting the error, so I still needed my patch.
Thanks
Fabio,
Quoted 7 lines · Fabio Estevam
Hi Eduardo,
Quoted 3 lines · Eduardo Valentin
Thanks for your patch. But I am queuing a different patch that does a similar job.
Quoted 8 lines
I am running linux-next 20141211, which has this commit applied.
Quoted 2 lines
Can you please check my -fixes branch? When
EPROBE_DEFERhappens, we are now printing a debug message only.On linux-next I am still getting the error, so I still needed my patch.
Understood. I will be queuing it in my -fixes branch.
Thanks!
Quoted 2 lines
Thanks