drivers: thermal: tsens: Work with old DTBs
Subsystems (3)
PATCH v2 1/1 drivers: thermal: tsens: Work with old DTBs
In reply to a message not in the archiveIn order for the old DTBs to continue working, the new interrupt code must not return an error if interrupts are not defined. Don't return an error in case of -ENXIO.
--- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/thermal/qcom/tsens.c +3 -0
@@ -110,6 +110,9 @@ static int tsens_register(struct tsens_priv *priv) irq =platform_get_irq_byname (pdev,"uplow" );if (irq <0 ) { ret = irq; +/* For old DTs with no IRQ defined */ +if (irq == -ENXIO ) + ret =0 ; goto err_put_device; }
Signature · 1 line
2.20.1
Quoted 7 lines · Amit Kucheria
In order for the old DTBs to continue working, the new interrupt code must not return an error if interrupts are not defined. Don't return an error in case of
-ENXIO.Fixes 634e11d5b450a ("drivers: thermal: tsens: Add interrupt support")Suggested-by Stephan Gerhold <[email protected]>Signed-off-by Amit Kucheria <[email protected]>
Quoted 21 lines
--- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+)drivers/thermal/qcom/tsens.c +3
-0@@ -110,6 +110,9 @@ static int tsens_register(struct tsens_priv *priv) irq =platform_get_irq_byname (pdev,"uplow" );if (irq <0 ) { ret = irq; +/* For old DTs with no IRQ defined */ +if (irq == -ENXIO ) + ret =0 ; goto err_put_device; }Signature · 1 line
2.20.1
Daniel Lezcano
AppliedQuoted 7 lines · Amit Kucheria
In order for the old DTBs to continue working, the new interrupt code must not return an error if interrupts are not defined. Don't return an error in case of
-ENXIO.Fixes 634e11d5b450a ("drivers: thermal: tsens: Add interrupt support")Suggested-by Stephan Gerhold <[email protected]>Signed-off-by Amit Kucheria <[email protected]>
Applied.
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Quoted 11 lines · Daniel Lezcano
Quoted 7 lines · Amit Kucheria
In order for the old DTBs to continue working, the new interrupt code must not return an error if interrupts are not defined. Don't return an error in case of
-ENXIO.Fixes 634e11d5b450a ("drivers: thermal: tsens: Add interrupt support")Suggested-by Stephan Gerhold <[email protected]>Signed-off-by Amit Kucheria <[email protected]>Applied.
Hi Daniel,
I haven't seen this fix until -rc4. Do you plan to send it?
Regards,
Amit
Quoted 12 lines · Amit Kucheria
Quoted 10 lines · Daniel Lezcano
Quoted 7 lines · Amit Kucheria
In order for the old DTBs to continue working, the new interrupt code must not return an error if interrupts are not defined. Don't return an error in case of
-ENXIO.Fixes 634e11d5b450a ("drivers: thermal: tsens: Add interrupt support")Suggested-by Stephan Gerhold <[email protected]>Signed-off-by Amit Kucheria <[email protected]>
Quoted 5 lines
Quoted 1 line
Applied.
Hi Daniel,
I haven't seen this fix until -rc4. Do you plan to send it?
Hi Amit,
right, I've put it in the thermal/linux-next branch. I'll move it to thermal/fixes and send a PR tomorrow.
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Quoted 16 lines · Daniel Lezcano
Quoted 14 lines · Amit Kucheria
Quoted 11 lines · Daniel Lezcano
Quoted 7 lines · Amit Kucheria
In order for the old DTBs to continue working, the new interrupt code must not return an error if interrupts are not defined. Don't return an error in case of
-ENXIO.Fixes 634e11d5b450a ("drivers: thermal: tsens: Add interrupt support")Suggested-by Stephan Gerhold <[email protected]>Signed-off-by Amit Kucheria <[email protected]>Applied.
Quoted 8 lines
Quoted 3 lines
Hi Daniel,
I haven't seen this fix until -rc4. Do you plan to send it?
Hi Amit,
right, I've put it in the thermal/linux-next branch. I'll move it to thermal/fixes and send a PR tomorrow.
Thanks.