Skip to content

Commit 8f81237

Browse files
committed
platform/x86: intel: int0002_vgpio: Pass IRQF_ONESHOT to request_irq()
Since commit 7a36b90 ("ACPI: OSL: Use a threaded interrupt handler for SCI") the ACPI OSL code passes IRQF_ONESHOT when requesting the SCI. Since the INT0002 GPIO is typically shared with the ACPI SCI the INT0002 driver must pass the same flags. This fixes the INT0002 driver failing to probe due to following error + as well as removing the backtrace that follows this error: "genirq: Flags mismatch irq 9. 00000084 (INT0002) vs. 00002080 (acpi)" Fixes: 7a36b90 ("ACPI: OSL: Use a threaded interrupt handler for SCI") Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20240210110149.12803-1-hdegoede@redhat.com
1 parent 6f7d0f5 commit 8f81237

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/platform/x86/intel/int0002_vgpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static int int0002_probe(struct platform_device *pdev)
196196
* IRQs into gpiolib.
197197
*/
198198
ret = devm_request_irq(dev, irq, int0002_irq,
199-
IRQF_SHARED, "INT0002", chip);
199+
IRQF_ONESHOT | IRQF_SHARED, "INT0002", chip);
200200
if (ret) {
201201
dev_err(dev, "Error requesting IRQ %d: %d\n", irq, ret);
202202
return ret;

0 commit comments

Comments
 (0)