spi: pxa2xx: Move PM runtime handling to the glue drivers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 22 Aug 2024 11:30:54 +0000 (14:30 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 22 Aug 2024 12:34:06 +0000 (13:34 +0100)
commite17465f78eb92ebb4be17e35d6c0584406f643a0
tree908f554e57e36716250db91ca046faff63fe97af
parent9a8fc292dd93b93db30e01c94c0da4c944852f28
spi: pxa2xx: Move PM runtime handling to the glue drivers

PCI and platform buses have different defaults for runtime PM.
In particular PCI probe is assumed to be called when PM runtime
is enabled by the PCI core. In this case if we try enable it again
the PM runtime complaints with

    pxa2xx_spi_pci 0000:00:07.0: Unbalanced pm_runtime_enable!

Fix this by moving PM runtime handling from the SPI PXA2xx core
to the glue drivers.

Fixes: cc160697a576 ("spi: pxa2xx: Convert PCI driver to use spi-pxa2xx code directly")
Fixes: 3d8f037fbcab ("spi: pxa2xx: Move platform driver to a separate file")
Fixes: 20ade9b9771c ("spi: pxa2xx: Extract pxa2xx_spi_platform_*() callbacks")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20240822113408.750831-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-pci.c
drivers/spi/spi-pxa2xx-platform.c
drivers/spi/spi-pxa2xx.c