mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 18:41:00 +07:00
PNPACPI: pnpacpi_encode_ext_irq() wrongly set "irq" instead of "extended_irq"
pnpacpi_encode_ext_irq() should set resource->data.extended_irq, not resource->data.irq. This has been wrong since at least 2.6.12. I haven't seen any bug reports, but it's clearly incorrect. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
6bf2aab24a
commit
f7e8466a04
@ -820,9 +820,9 @@ static void pnpacpi_encode_ext_irq(struct acpi_resource *resource,
|
||||
resource->data.extended_irq.triggering = triggering;
|
||||
resource->data.extended_irq.polarity = polarity;
|
||||
if (triggering == ACPI_EDGE_SENSITIVE)
|
||||
resource->data.irq.sharable = ACPI_EXCLUSIVE;
|
||||
resource->data.extended_irq.sharable = ACPI_EXCLUSIVE;
|
||||
else
|
||||
resource->data.irq.sharable = ACPI_SHARED;
|
||||
resource->data.extended_irq.sharable = ACPI_SHARED;
|
||||
resource->data.extended_irq.interrupt_count = 1;
|
||||
resource->data.extended_irq.interrupts[0] = p->start;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user