Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: pxa2xx-pci: fix ACPI-based enumeration of SPI devices

Slave devices are not enumerated by ACPI data because the ACPI handle for the
core driver is NULL if it was enumerated by PCI.

Propagate firmware node handle of the PCI device to the platform device.

Suggested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
b70cd2de 29b4817d

+1
+1
drivers/spi/spi-pxa2xx-pci.c
··· 214 214 return PTR_ERR(ssp->clk); 215 215 216 216 memset(&pi, 0, sizeof(pi)); 217 + pi.fwnode = dev->dev.fwnode; 217 218 pi.parent = &dev->dev; 218 219 pi.name = "pxa2xx-spi"; 219 220 pi.id = ssp->port_id;