From: Baolin Wang <baolin.wang@linux.alibaba.com>
To: Wentao Liang <vulab@iscas.ac.cn>,
adrian.hunter@intel.com, ulf.hansson@linaro.org,
orsonzhai@gmail.com, zhang.lyra@gmail.com
Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] mmc: sdhci-sprd: Add error handling for sdhci_runtime_suspend_host()
Date: Wed, 21 May 2025 11:22:18 +0800 [thread overview]
Message-ID: <6f0b7332-477b-4028-b663-09803718e8d9@linux.alibaba.com> (raw)
In-Reply-To: <20250519123347.2242-1-vulab@iscas.ac.cn>
On 2025/5/19 20:33, Wentao Liang wrote:
> The dhci_sprd_runtime_suspend() calls sdhci_runtime_suspend_host() but
> does not handle the return value. A proper implementation can be found
> in sdhci_am654_runtime_suspend().
>
> Add error handling for sdhci_runtime_suspend_host(). Return the error
> code if the suspend fails.
>
> Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")
> Cc: stable@vger.kernel.org # v4.20
> Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
LGTM.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
> ---
> drivers/mmc/host/sdhci-sprd.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c
> index db5e253b0f79..dd41427e973a 100644
> --- a/drivers/mmc/host/sdhci-sprd.c
> +++ b/drivers/mmc/host/sdhci-sprd.c
> @@ -922,9 +922,12 @@ static int sdhci_sprd_runtime_suspend(struct device *dev)
> {
> struct sdhci_host *host = dev_get_drvdata(dev);
> struct sdhci_sprd_host *sprd_host = TO_SPRD_HOST(host);
> + int ret;
>
> mmc_hsq_suspend(host->mmc);
> - sdhci_runtime_suspend_host(host);
> + ret = sdhci_runtime_suspend_host(host);
> + if (ret)
> + return ret;
>
> clk_disable_unprepare(sprd_host->clk_sdio);
> clk_disable_unprepare(sprd_host->clk_enable);
next prev parent reply other threads:[~2025-05-21 3:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-19 12:33 [PATCH] mmc: sdhci-sprd: Add error handling for sdhci_runtime_suspend_host() Wentao Liang
2025-05-21 3:22 ` Baolin Wang [this message]
2025-05-30 12:26 ` Adrian Hunter
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=6f0b7332-477b-4028-b663-09803718e8d9@linux.alibaba.com \
--to=baolin.wang@linux.alibaba.com \
--cc=adrian.hunter@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=orsonzhai@gmail.com \
--cc=stable@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=vulab@iscas.ac.cn \
--cc=zhang.lyra@gmail.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