Skip to contentSkip to conversation

watchdog: qcom: Use irq flags from firmware

PATCH In review Stephen Boyd 4 participants 4 messages Feb 20, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: qcom: Use irq flags from firmware

The DT or ACPI tables should tell the driver what the irq flags are. Given that this driver probes only on DT based platforms and those DT platforms specify the irq flags we can safely drop the forced irq flag setting here.

Cc Andy Gross <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Sai Prakash Ranjan <[email protected]>
---
 drivers/watchdog/qcom-wdt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/watchdog/qcom-wdt.c +1 -2
index eb47fe5ed280..c70e89013101 100644
@@ -248,8 +248,7 @@ static int qcom_wdt_probe(struct platform_device *pdev)
 	/* check if there is pretimeout support */
 	irq = platform_get_irq_optional(pdev, 0);
 	if (irq > 0) {
-		ret = devm_request_irq(dev, irq, qcom_wdt_isr,
-				       IRQF_TRIGGER_RISING,
+		ret = devm_request_irq(dev, irq, qcom_wdt_isr, 0,
 				       "wdt_bark", &wdt->wdd);
 		if (ret)
 			return ret;
Signature · 1 line
Sent by a computer, using git, on the internet
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Stephen Boyd

The DT or ACPI tables should tell the driver what the irq flags are. Given that this driver probes only on DT based platforms and those DT platforms specify the irq flags we can safely drop the forced irq flag setting here.

Cc Andy Gross <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Sai Prakash Ranjan <[email protected]>

Regards,
Bjorn

Quoted 22 lines
---
 drivers/watchdog/qcom-wdt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/watchdog/qcom-wdt.c +1 -2
index eb47fe5ed280..c70e89013101 100644
@@ -248,8 +248,7 @@ static int qcom_wdt_probe(struct platform_device *pdev)
 	/* check if there is pretimeout support */
 	irq = platform_get_irq_optional(pdev, 0);
 	if (irq > 0) {
-		ret = devm_request_irq(dev, irq, qcom_wdt_isr,
-				       IRQF_TRIGGER_RISING,
+		ret = devm_request_irq(dev, irq, qcom_wdt_isr, 0,
 				       "wdt_bark", &wdt->wdd);
 		if (ret)
 			return ret;
Signature · 1 line
Sent by a computer, using git, on the internet
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Stephen Boyd
Quoted 9 lines · Stephen Boyd

The DT or ACPI tables should tell the driver what the irq flags are. Given that this driver probes only on DT based platforms and those DT platforms specify the irq flags we can safely drop the forced irq flag setting here.

Cc Andy Gross <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Sai Prakash Ranjan <[email protected]>
Quoted 19 lines
---
  drivers/watchdog/qcom-wdt.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/watchdog/qcom-wdt.c +1 -2
index eb47fe5ed280..c70e89013101 100644
@@ -248,8 +248,7 @@ static int qcom_wdt_probe(struct platform_device *pdev)
  	/* check if there is pretimeout support */
  	irq = platform_get_irq_optional(pdev, 0);
  	if (irq > 0) {
-		ret = devm_request_irq(dev, irq, qcom_wdt_isr,
-				       IRQF_TRIGGER_RISING,
+		ret = devm_request_irq(dev, irq, qcom_wdt_isr, 0,
  				       "wdt_bark", &wdt->wdd);
  		if (ret)
  			return ret;
Reviewed-by on v1 1/1
#3 lore raw
In reply to Stephen Boyd
Quoted 9 lines · Stephen Boyd

The DT or ACPI tables should tell the driver what the irq flags are. Given that this driver probes only on DT based platforms and those DT platforms specify the irq flags we can safely drop the forced irq flag setting here.

Cc Andy Gross <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Sai Prakash Ranjan <[email protected]>

Thanks,

Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation