firmware: qcom: scm: fix bogus irq error at probe
PATCH 1/1 firmware: qcom: scm: fix bogus irq error at probe
A recent commit added support for an optional interrupt which is only available on some platforms.
Stop spamming the logs with bogus error messages on platforms that do not use this new optional resource:
qcom_scm firmware:scm: error -ENXIO: IRQ index 0 not found
--- drivers/firmware/qcom_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/qcom_scm.c +1 -1
@@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev)init_completion (&__scm->waitq_comp); - irq =platform_get_irq (pdev,0 ); + irq =platform_get_irq_optional (pdev,0 );if (irq <0 ) {if (irq != -ENXIO )return irq;
Signature · 1 line
2.39.2
Quoted 6 lines · Johan Hovold
A recent commit added support for an optional interrupt which is only available on some platforms.
Stop spamming the logs with bogus error messages on platforms that do not use this new optional resource:
Quoted 7 lines
qcom_scmfirmware:scm: error-ENXIO: IRQ index 0 not foundFixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")Cc Guru Das Srinagesh <[email protected]>Cc Sibi Sankar <[email protected]>Signed-off-by Johan Hovold <[email protected]>---
Konrad
Quoted 16 lines
drivers/firmware/qcom_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/qcom_scm.c +1
-1@@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev)init_completion (&__scm->waitq_comp); - irq =platform_get_irq (pdev,0 ); + irq =platform_get_irq_optional (pdev,0 );if (irq <0 ) {if (irq != -ENXIO )return irq;
Quoted 6 lines · Johan Hovold
A recent commit added support for an optional interrupt which is only available on some platforms.
Stop spamming the logs with bogus error messages on platforms that do not use this new optional resource:
Quoted 6 lines
qcom_scmfirmware:scm: error-ENXIO: IRQ index 0 not foundFixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")Cc Guru Das Srinagesh <[email protected]>Cc Sibi Sankar <[email protected]>Signed-off-by Johan Hovold <[email protected]>
Thanks for catching this!
Quoted 20 lines
--- drivers/firmware/qcom_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/qcom_scm.c +1
-1@@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev)init_completion (&__scm->waitq_comp); - irq =platform_get_irq (pdev,0 ); + irq =platform_get_irq_optional (pdev,0 );if (irq <0 ) {if (irq != -ENXIO )return irq;Signature · 1 line
2.39.2
Quoted 31 lines · Johan Hovold
A recent commit added support for an optional interrupt which is only available on some platforms.
Stop spamming the logs with bogus error messages on platforms that do not use this new optional resource:
qcom_scmfirmware:scm: error-ENXIO: IRQ index 0 not foundFixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")Cc Guru Das Srinagesh <[email protected]>Cc Sibi Sankar <[email protected]>Signed-off-by Johan Hovold <[email protected]>--- drivers/firmware/qcom_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/qcom_scm.c +1
-2@@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev)init_completion (&__scm->waitq_comp); - irq =platform_get_irq (pdev,0 ); + irq =platform_get_irq_optional (pdev,0 );if (irq <0 ) {if (irq != -ENXIO )return irq; --
Quoted 2 lines
2.39.2
Thank you!
Tested on the Thinkpad X13s
Hey Johan,
Thanks for the fix.
Quoted 6 lines · Johan Hovold
A recent commit added support for an optional interrupt which is only available on some platforms.
Stop spamming the logs with bogus error messages on platforms that do not use this new optional resource:
Quoted 6 lines
qcom_scmfirmware:scm: error-ENXIO: IRQ index 0 not foundFixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")Cc Guru Das Srinagesh <[email protected]>Cc Sibi Sankar <[email protected]>Signed-off-by Johan Hovold <[email protected]>
Quoted 17 lines
--- drivers/firmware/qcom_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/qcom_scm.c +1
-1@@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev)init_completion (&__scm->waitq_comp); - irq =platform_get_irq (pdev,0 ); + irq =platform_get_irq_optional (pdev,0 );if (irq <0 ) {if (irq != -ENXIO )return irq;
Bjorn Andersson
AppliedQuoted 9 lines · Johan Hovold
A recent commit added support for an optional interrupt which is only available on some platforms.
Stop spamming the logs with bogus error messages on platforms that do not use this new optional resource:
qcom_scmfirmware:scm: error-ENXIO: IRQ index 0 not found[...]
Applied, thanks!
[1/1] firmware: qcom: scm: fix bogus irq error at probe
commit: f3d0fbad6765da25de7ecf6481af9b6ddb0b3793
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>