Skip to contentSkip to conversation

Revert "ACPI: resources: Add checks for ACPI IRQ override"

PATCH Applied Hui Wang 5 participants 7 messages Jul 28, 2021 – Jul 29, 2021

Subsystems (2)
lore
Share & tools
lore

Hui Wang

author
#0 lore raw

PATCH 1/1 Revert "ACPI: resources: Add checks for ACPI IRQ override"

The commit 0ec4e55e9f57 ("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 0ec4e55e9f571f08970ed115ec0addc691eda613.

Regression-discuss: https://bugzilla.kernel.org/show_bug.cgi?id=213031

---
 drivers/acpi/resource.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
drivers/acpi/resource.c +1 -8
index dc01fb550b28..ee78a210c606 100644
@@ -423,13 +423,6 @@ static void acpi_dev_get_irqresource(struct resource *res, u32 gsi,
 	}
 }
 
-static bool irq_is_legacy(struct acpi_resource_irq *irq)
-{
-	return irq->triggering == ACPI_EDGE_SENSITIVE &&
-		irq->polarity == ACPI_ACTIVE_HIGH &&
-		irq->shareable == ACPI_EXCLUSIVE;
-}
-
 /**
  * acpi_dev_resource_interrupt - Extract ACPI interrupt resource information.
  * @ares: Input ACPI resource object.
@@ -468,7 +461,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,
 		}
 		acpi_dev_get_irqresource(res, irq->interrupts[index],
 					 irq->triggering, irq->polarity,
-					 irq->shareable, irq_is_legacy(irq));
+					 irq->shareable, true);
 		break;
 	case ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
 		ext_irq = &ares->data.extended_irq;
Signature · 1 line
2.25.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Hui Wang

The commit 0ec4e55e9f57 ("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 0ec4e55e9f571f08970ed115ec0addc691eda613.

Quoted 7 lines

Regression-discuss: https://bugzilla.kernel.org/show_bug.cgi?id=213031

---
 drivers/acpi/resource.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
maintainer Applied
#2 lore raw
Quoted 17 lines · Greg KH
Quoted 7 lines · Hui Wang

The commit 0ec4e55e9f57 ("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 0ec4e55e9f571f08970ed115ec0addc691eda613.

Quoted 7 lines

Regression-discuss: https://bugzilla.kernel.org/show_bug.cgi?id=213031

---
 drivers/acpi/resource.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
Quoted 1 line

Applied as 5.14-rc material, thanks!

#3 lore raw
Quoted 2 lines · Rafael J. Wysocki

On Wed, Jul 28, 2021 at 6:08 PM Greg KH <[email protected]> wrote:
Applied as 5.14-rc material, thanks!

ty!

Will this revert be auto-magically backported to earlier stable (5.12x/5.13x) trees? Or does that require a manual trigger?
Or, is that a distro kernel release issue?

#4 lore raw
Quoted 8 lines · PGNet Dev
Quoted 2 lines · Rafael J. Wysocki

On Wed, Jul 28, 2021 at 6:08 PM Greg KH <[email protected]> wrote:
Applied as 5.14-rc material, thanks!

ty!

Will this revert be auto-magically backported to earlier stable (5.12x/5.13x) trees?

It carries the Cc:stable tag, so it should be picked up automatically.

Quoted 3 lines

Or does that require a manual trigger?
Or, is that a distro kernel release issue?

#5 lore raw
Quoted 3 lines · Rafael J. Wysocki
Quoted 1 line

Will this revert be auto-magically backported to earlier stable (5.12x/5.13x) trees?

It carries the Cc:stable tag, so it should be picked up automatically.

thx all!

maintainer
#6 lore raw
In reply to PGNet Dev
Quoted 9 lines · PGNet Dev
Quoted 2 lines · Rafael J. Wysocki

On Wed, Jul 28, 2021 at 6:08 PM Greg KH <[email protected]> wrote:
Applied as 5.14-rc material, thanks!

ty!

Will this revert be auto-magically backported to earlier stable (5.12x/5.13x) trees? Or does that require a manual trigger?
Or, is that a distro kernel release issue?

Since it has a cc to stable it should happen automagically.

Signature · 2 lines
Thanks,
Sasha