From: Claudiu Beznea <claudiu.beznea@tuxon.dev>
To: pavel@nabladev.com, nobuhiro.iwamatsu.x90@mail.toshiba
Cc: cip-dev@lists.cip-project.org,
Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Subject: Re: [cip-dev] [PATCH 5.10.y-cip 2/2] mmc: renesas_sdhi: Add suspend/resume hooks
Date: Tue, 27 Jan 2026 12:04:23 +0200 [thread overview]
Message-ID: <71577b5a-b879-4d5d-be4c-ff38883aa3f6@tuxon.dev> (raw)
In-Reply-To: <188E3EA6FA665A88.3837557@lists.cip-project.org>
Hi,
On 1/26/26 11:43, claudiu beznea via lists.cip-project.org wrote:
> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>
> commit dcbce328d3a2d87770133834210cf328c083d480 upstream.
>
> Add suspend/resume hooks which assert/deassert the reset signals, along
> with forcing runtime suspend/resume. This allows using the driver in
> scenarios where the resume is done with the help of bootloader and the
> bootloader disables the SDHI clocks, resets, IRQs before passing execution
> to Linux.
>
> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> [claudiu.beznea: adjusted as follows:
> - in renesas_sdhi.h: kept the include section as it was in CIP v5.10, kept
> the renesas_sdhi_probe() and renesas_sdhi_remove() prototype as it was on
> v5.10 CIP
> - in renesas_sdhi_core.c: kept the renesas_sdhi_suspend() and
> renesas_sdhi_remove() definitions
> - in renesas_sdhi_internal_dmac.c: kept the code from CIP v5.10
> - guard new PM function with CONFIG_PM]
This should have been CONFIG_PM_SLEEP as SET_SYSTEM_SLEEP_PM_OPS() is
defined as follows on v5.10:
#ifdef CONFIG_PM_SLEEP
#define SET_SYSTEM_SLEEP_PM_OPS(suspend_fn, resume_fn) \
.suspend = suspend_fn, \
.resume = resume_fn, \
.freeze = suspend_fn, \
.thaw = resume_fn, \
.poweroff = suspend_fn, \
.restore = resume_fn,
#else
#define SET_SYSTEM_SLEEP_PM_OPS(suspend_fn, resume_fn)
#endif
I'll post v2 for this backport.
Thank you,
Claudiu
prev parent reply other threads:[~2026-01-27 10:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-26 9:43 [PATCH 5.10.y-cip 0/2] mmc: renesas_sdhi: Backport reset control Claudiu
2026-01-26 9:43 ` [PATCH 5.10.y-cip 1/2] mmc: renesas_sdhi: Deassert the reset signal on probe Claudiu
2026-01-26 9:43 ` [PATCH 5.10.y-cip 2/2] mmc: renesas_sdhi: Add suspend/resume hooks Claudiu
[not found] ` <188E3EA6FA665A88.3837557@lists.cip-project.org>
2026-01-27 10:04 ` Claudiu Beznea [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=71577b5a-b879-4d5d-be4c-ff38883aa3f6@tuxon.dev \
--to=claudiu.beznea@tuxon.dev \
--cc=cip-dev@lists.cip-project.org \
--cc=fabrizio.castro.jz@renesas.com \
--cc=nobuhiro.iwamatsu.x90@mail.toshiba \
--cc=pavel@nabladev.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox