diff options
author | Théo Lebrun <theo.lebrun@bootlin.com> | 2024-02-22 13:12:32 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-02-22 15:25:10 +0300 |
commit | 078d62de433b4f4556bb676e5dd670f0d4103376 (patch) | |
tree | ab69c468c02e7dfd3079e5d3ac68298bea3ede46 /drivers/fpga/xilinx-selectmap.c | |
parent | 4efa1250b59ebf47ce64a7b6b7c3e2e0a2a9d35a (diff) | |
download | linux-078d62de433b4f4556bb676e5dd670f0d4103376.tar.xz |
spi: cadence-qspi: add system-wide suspend and resume callbacks
Each SPI controller is expected to call the spi_controller_suspend() and
spi_controller_resume() callbacks at system-wide suspend and resume.
It (1) handles the kthread worker for queued controllers and (2) marks
the controller as suspended to have spi_sync() fail while the
controller is unavailable.
Those two operations do not require the controller to be active, we do
not need to increment the runtime PM usage counter.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://msgid.link/r/20240222-cdns-qspi-pm-fix-v4-4-6b6af8bcbf59@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions