public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [cip-dev] [PATCH] spi: pxa2xx-pci: fix ACPI-based enumeration of SPI devices
@ 2017-11-16 12:06 Jan Kiszka
  2017-11-22 16:54 ` Ben Hutchings
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2017-11-16 12:06 UTC (permalink / raw)
  To: cip-dev

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

commit b70cd2de0ea85f5ab51a1d01893cba6415011b9d upstream.

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>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Required for our IOT2000 devices to work properly.

 drivers/spi/spi-pxa2xx-pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c
index d19d7f28aecb..ac0658ead1b9 100644
--- a/drivers/spi/spi-pxa2xx-pci.c
+++ b/drivers/spi/spi-pxa2xx-pci.c
@@ -167,6 +167,7 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 		return PTR_ERR(ssp->clk);
 
 	memset(&pi, 0, sizeof(pi));
+	pi.fwnode = dev->dev.fwnode;
 	pi.parent = &dev->dev;
 	pi.name = "pxa2xx-spi";
 	pi.id = ssp->port_id;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-22 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-16 12:06 [cip-dev] [PATCH] spi: pxa2xx-pci: fix ACPI-based enumeration of SPI devices Jan Kiszka
2017-11-22 16:54 ` Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox