Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66063376 authored by Naman Padhiar's avatar Naman Padhiar Committed by Gerrit - the friendly Code Review server
Browse files

icnss: Register IRQ handler with IRQF_TRIGGER_RISING flag



Pass IRQ flag IRQF_TRIGGER_RISING ORed with IRQF_ONESHOT to
register handler for smp2p interrupts.

Change-Id: I6ada43c10b0c2f1fd08f8d7b556f7aea78f94406
Signed-off-by: default avatarNaman Padhiar <npadhiar@codeaurora.org>
parent 63ebb55f
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -724,8 +724,8 @@ static void register_fw_error_notifications(struct device *dev)
	}

	ret = devm_request_threaded_irq(dev, irq, NULL, fw_error_fatal_handler,
					IRQF_ONESHOT, "wlanfw-err",
					priv);
					IRQF_ONESHOT | IRQF_TRIGGER_RISING,
					"wlanfw-err", priv);
	if (ret < 0) {
		icnss_pr_err("Unable to register for error fatal IRQ handler %d ret = %d",
			     irq, ret);
@@ -764,9 +764,8 @@ static void register_early_crash_notifications(struct device *dev)

	ret = devm_request_threaded_irq(dev, irq, NULL,
					fw_crash_indication_handler,
					IRQF_ONESHOT,
					"wlanfw-early-crash-ind",
					priv);
					IRQF_ONESHOT | IRQF_TRIGGER_RISING,
					"wlanfw-early-crash-ind", priv);
	if (ret < 0) {
		icnss_pr_err("Unable to register for early crash indication IRQ handler %d ret = %d",
			     irq, ret);