drivers/spi/spi-rzv2h-rspi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Add suspend/resume support to the rzv2h-rspi driver by implementing
suspend and resume callbacks that delegate to spi_controller_suspend()
and spi_controller_resume() respectively.
Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
---
drivers/spi/spi-rzv2h-rspi.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/spi/spi-rzv2h-rspi.c b/drivers/spi/spi-rzv2h-rspi.c
index 1655efda7d20..694e5305c638 100644
--- a/drivers/spi/spi-rzv2h-rspi.c
+++ b/drivers/spi/spi-rzv2h-rspi.c
@@ -802,6 +802,23 @@ static int rzv2h_rspi_probe(struct platform_device *pdev)
return ret;
}
+static int rzv2h_rspi_suspend(struct device *dev)
+{
+ struct rzv2h_rspi_priv *rspi = dev_get_drvdata(dev);
+
+ return spi_controller_suspend(rspi->controller);
+}
+
+static int rzv2h_rspi_resume(struct device *dev)
+{
+ struct rzv2h_rspi_priv *rspi = dev_get_drvdata(dev);
+
+ return spi_controller_resume(rspi->controller);
+}
+
+static DEFINE_SIMPLE_DEV_PM_OPS(rzv2h_rspi_pm_ops, rzv2h_rspi_suspend,
+ rzv2h_rspi_resume);
+
static const struct rzv2h_rspi_info rzv2h_info = {
.find_tclk_rate = rzv2h_rspi_find_rate_fixed,
.tclk_name = "tclk",
@@ -837,6 +854,7 @@ static struct platform_driver rzv2h_rspi_drv = {
.driver = {
.name = "rzv2h_rspi",
.of_match_table = rzv2h_rspi_match,
+ .pm = pm_sleep_ptr(&rzv2h_rspi_pm_ops),
},
};
module_platform_driver(rzv2h_rspi_drv);
--
2.54.0
On Mon, 08 Jun 2026 22:25:08 +0200, Tommaso Merciai wrote:
> spi: rzv2h-rspi: Add suspend/resume support
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.2
Thanks!
[1/1] spi: rzv2h-rspi: Add suspend/resume support
https://git.kernel.org/broonie/spi/c/2cf4ad412f90
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
© 2016 - 2026 Red Hat, Inc.