diff options
| author | Mark Brown <broonie@kernel.org> | 2025-09-23 11:57:52 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-09-23 11:57:52 +0300 |
| commit | 2bfb20b65d9bc1d0de58f8c28ca9d6f1d27bbc01 (patch) | |
| tree | 28dd423bd06eff7e930d203f8b3ed4c0227cce82 /samples | |
| parent | 089558a9baaceb68b58c31cab658b7117743c452 (diff) | |
| parent | ad4728740bd68d74365a43acc25a65339a9b2173 (diff) | |
| download | linux-2bfb20b65d9bc1d0de58f8c28ca9d6f1d27bbc01.tar.xz | |
spi: rpc-if: Add resume support for RZ/G3E
Merge series from Biju Das <biju.das.jz@bp.renesas.com>:
On RZ/G3E using PSCI, s2ram powers down the SoC. After resume,
reinitialize the hardware for SPI operations.
Also Replace the macro SIMPLE_DEV_PM_OPS->DEFINE_SIMPLE_DEV_PM_OPS macro
and use pm_sleep_ptr(). This lets us drop the check for CONFIG_PM_SLEEP
and __maybe_unused attribute from PM functions.
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/damon/mtier.c | 3 | ||||
| -rw-r--r-- | samples/damon/prcl.c | 3 | ||||
| -rw-r--r-- | samples/damon/wsse.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/samples/damon/mtier.c b/samples/damon/mtier.c index 7ebd352138e4..beaf36657dea 100644 --- a/samples/damon/mtier.c +++ b/samples/damon/mtier.c @@ -208,6 +208,9 @@ static int damon_sample_mtier_enable_store( if (enabled == is_enabled) return 0; + if (!init_called) + return 0; + if (enabled) { err = damon_sample_mtier_start(); if (err) diff --git a/samples/damon/prcl.c b/samples/damon/prcl.c index 1b839c06a612..0226652f94d5 100644 --- a/samples/damon/prcl.c +++ b/samples/damon/prcl.c @@ -137,6 +137,9 @@ static int damon_sample_prcl_enable_store( if (enabled == is_enabled) return 0; + if (!init_called) + return 0; + if (enabled) { err = damon_sample_prcl_start(); if (err) diff --git a/samples/damon/wsse.c b/samples/damon/wsse.c index da052023b099..21eaf15f987d 100644 --- a/samples/damon/wsse.c +++ b/samples/damon/wsse.c @@ -118,6 +118,9 @@ static int damon_sample_wsse_enable_store( return 0; if (enabled) { + if (!init_called) + return 0; + err = damon_sample_wsse_start(); if (err) enabled = false; |
