Skip to contentSkip to conversation

firmware: qcom: scm: fix bogus irq error at probe

PATCH Applied Johan Hovold 6 participants 6 messages Mar 9, 2023 – Mar 15, 2023 Arm Qualcomm mailing list

lore
Share & tools
lore
#0 lore raw

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

Fixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")
Cc Guru Das Srinagesh <[email protected]>
Cc Sibi Sankar <[email protected]>
---
 drivers/firmware/qcom_scm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/qcom_scm.c +1 -1
index 468d4d5ab550..b1e11f85b805 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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_scm firmware:scm: error -ENXIO: IRQ index 0 not found

Fixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")
Cc Guru Das Srinagesh <[email protected]>
Cc Sibi Sankar <[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
index 468d4d5ab550..b1e11f85b805 100644
@@ -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;
Acked-by on v1 1/1
#2 lore raw
In reply to Johan Hovold
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_scm firmware:scm: error -ENXIO: IRQ index 0 not found

Fixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")
Cc Guru Das Srinagesh <[email protected]>
Cc Sibi Sankar <[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
index 468d4d5ab550..b1e11f85b805 100644
@@ -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
Tested-by on v1 1/1
#3 lore raw
In reply to Johan Hovold
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_scm firmware:scm: error -ENXIO: IRQ index 0 not found

Fixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")
Cc Guru Das Srinagesh <[email protected]>
Cc Sibi Sankar <[email protected]>
---
 drivers/firmware/qcom_scm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/qcom_scm.c +1 -2
index 468d4d5ab550..b1e11f85b805 100644
@@ -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

Reviewed-by on v1 1/1
#4 lore raw
In reply to Johan Hovold

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_scm firmware:scm: error -ENXIO: IRQ index 0 not found

Fixes 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")
Cc Guru Das Srinagesh <[email protected]>
Cc Sibi Sankar <[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
index 468d4d5ab550..b1e11f85b805 100644
@@ -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;
#5 lore raw
In reply to Johan Hovold
Quoted 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_scm firmware: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]>