Skip to content

Commit e0eef36

Browse files
jason77-wangrafaeljw
authored andcommitted
Revert "ACPI: resources: Add checks for ACPI IRQ override"
The commit 0ec4e55 ("ACPI: resources: Add checks for ACPI IRQ override") introduces regression on some platforms, at least it makes the UART can't get correct irq setting on two different platforms, and it makes the kernel can't bootup on these two platforms. This reverts commit 0ec4e55. Regression-discuss: https://bugzilla.kernel.org/show_bug.cgi?id=213031 Reported-by: PGNd <[email protected]> Cc: 5.4+ <[email protected]> # 5.4+ Signed-off-by: Hui Wang <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ff11764 commit e0eef36

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/acpi/resource.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,6 @@ static void acpi_dev_get_irqresource(struct resource *res, u32 gsi,
423423
}
424424
}
425425

426-
static bool irq_is_legacy(struct acpi_resource_irq *irq)
427-
{
428-
return irq->triggering == ACPI_EDGE_SENSITIVE &&
429-
irq->polarity == ACPI_ACTIVE_HIGH &&
430-
irq->shareable == ACPI_EXCLUSIVE;
431-
}
432-
433426
/**
434427
* acpi_dev_resource_interrupt - Extract ACPI interrupt resource information.
435428
* @ares: Input ACPI resource object.
@@ -468,7 +461,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,
468461
}
469462
acpi_dev_get_irqresource(res, irq->interrupts[index],
470463
irq->triggering, irq->polarity,
471-
irq->shareable, irq_is_legacy(irq));
464+
irq->shareable, true);
472465
break;
473466
case ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
474467
ext_irq = &ares->data.extended_irq;

0 commit comments

Comments
 (0)