watchdog: qcom: Use irq flags from firmware
Subsystems (2)
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.
--- drivers/watchdog/qcom-wdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/watchdog/qcom-wdt.c +1 -2
@@ -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
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
Signed-off-by Stephen Boyd <[email protected]>--- drivers/watchdog/qcom-wdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/watchdog/qcom-wdt.c +1
-2@@ -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
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]>Signed-off-by Stephen Boyd <[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@@ -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;
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]>Signed-off-by Stephen Boyd <[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