Skip to content

Commit 14b9749

Browse files
andy-shevgregkh
authored andcommitted
platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT
commit 5a00b6c2438460b870a451f14593fc40d3c7edf6 upstream. The commit 1c6c695 ("genirq: Reject bogus threaded irq requests") starts refusing misconfigured interrupt handlers. This makes intel_mid_powerbtn not working anymore. Add a mandatory flag to a threaded IRQ request in the driver. Fixes: 1c6c695 ("genirq: Reject bogus threaded irq requests") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d430c37 commit 14b9749

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/platform/x86/intel_mid_powerbtn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int mfld_pb_probe(struct platform_device *pdev)
7777

7878
input_set_capability(input, EV_KEY, KEY_POWER);
7979

80-
error = request_threaded_irq(irq, NULL, mfld_pb_isr, 0,
80+
error = request_threaded_irq(irq, NULL, mfld_pb_isr, IRQF_ONESHOT,
8181
DRIVER_NAME, input);
8282
if (error) {
8383
dev_err(&pdev->dev, "Unable to request irq %d for mfld power"

0 commit comments

Comments
 (0)