spi: spi-cadence-quadspi: add runtime pm support
authorDhruva Gole <d-gole@ti.com>
Tue, 29 Aug 2023 06:27:08 +0000 (11:57 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:32:21 +0000 (01:32 +0100)
commit0578a6dbfe7514db7134501cf93acc21cf13e479
tree3a3d84783f72b576c962622d622a4b45d0ddf065
parenteb9913b511f10968a02cfa5329a896855dd152a3
spi: spi-cadence-quadspi: add runtime pm support

Add runtime pm support to cadence-qspi driver, this allows the driver to
suspend whenever it's is not actively being used thus reducing active
power consumed by the system.

Also, with the use of devm_pm_runtime_enable we no longer need the
fallback probe_pm_failed that used to pm_runtime_disable

Co-developed-by: Apurva Nandan <a-nandan@ti.com>
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Signed-off-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230829062706.786637-1-d-gole@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c