Skip to content

Commit 33ada67

Browse files
cricard13rafaeljw
authored andcommitted
ACPI / spi: attach GPIO IRQ from ACPI description to SPI device
spi->irq was ignoring GpioInt property setting it to -1. acpi_dev_gpio_irq_get returns and configure the slave IRQ according to the ACPI slave node description. It is now inline with devicetree behavior. Acked-by: Mark Brown <[email protected]> Signed-off-by: Christophe Ricard <[email protected]> Acked-by: Mika Westerberg <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 5204472 commit 33ada67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/spi/spi.c

+3
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,9 @@ static acpi_status acpi_spi_add_device(acpi_handle handle, u32 level,
16231623
return AE_OK;
16241624
}
16251625

1626+
if (spi->irq < 0)
1627+
spi->irq = acpi_dev_gpio_irq_get(adev, 0);
1628+
16261629
adev->power.flags.ignore_parent = true;
16271630
strlcpy(spi->modalias, acpi_device_hid(adev), sizeof(spi->modalias));
16281631
if (spi_add_device(spi)) {

0 commit comments

Comments
 (0)