From: Michal Simek <michal.simek@amd.com>
To: Binbin Zhou <zhoubinbin@loongson.cn>,
Binbin Zhou <zhoubb.aaron@gmail.com>,
Huacai Chen <chenhuacai@loongson.cn>,
Ulf Hansson <ulf.hansson@linaro.org>,
Adrian Hunter <adrian.hunter@intel.com>
Cc: Huacai Chen <chenhuacai@kernel.org>, linux-mmc@vger.kernel.org
Subject: Re: [PATCH 17/34] mmc: sdhci-of-arasan: Drop the use of sdhci_pltfm_free()
Date: Mon, 26 May 2025 09:34:01 +0200 [thread overview]
Message-ID: <dec009ac-e185-4aca-986c-a8dda48fce19@amd.com> (raw)
In-Reply-To: <75f58a7bc0fef1236cd94cee8c9dc83bbc6a037c.1747792905.git.zhoubinbin@loongson.cn>
On 5/26/25 08:06, Binbin Zhou wrote:
> Since the devm_mmc_alloc_host() helper is already in
> use, sdhci_pltfm_free() is no longer needed.
>
> Cc: Michal Simek <michal.simek@amd.com>
> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
> ---
> drivers/mmc/host/sdhci-of-arasan.c | 26 ++++++++------------------
> 1 file changed, 8 insertions(+), 18 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
> index 8c29676ab662..42878474e56e 100644
> --- a/drivers/mmc/host/sdhci-of-arasan.c
> +++ b/drivers/mmc/host/sdhci-of-arasan.c
> @@ -1883,34 +1883,26 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
> sdhci_arasan->soc_ctl_base = syscon_node_to_regmap(node);
> of_node_put(node);
>
> - if (IS_ERR(sdhci_arasan->soc_ctl_base)) {
> - ret = dev_err_probe(dev,
> + if (IS_ERR(sdhci_arasan->soc_ctl_base))
> + return dev_err_probe(dev,
> PTR_ERR(sdhci_arasan->soc_ctl_base),
> "Can't get syscon\n");
> - goto err_pltfm_free;
> - }
> }
>
> sdhci_get_of_property(pdev);
>
> sdhci_arasan->clk_ahb = devm_clk_get(dev, "clk_ahb");
> - if (IS_ERR(sdhci_arasan->clk_ahb)) {
> - ret = dev_err_probe(dev, PTR_ERR(sdhci_arasan->clk_ahb),
> + if (IS_ERR(sdhci_arasan->clk_ahb))
> + return dev_err_probe(dev, PTR_ERR(sdhci_arasan->clk_ahb),
> "clk_ahb clock not found.\n");
> - goto err_pltfm_free;
> - }
>
> clk_xin = devm_clk_get(dev, "clk_xin");
> - if (IS_ERR(clk_xin)) {
> - ret = dev_err_probe(dev, PTR_ERR(clk_xin), "clk_xin clock not found.\n");
> - goto err_pltfm_free;
> - }
> + if (IS_ERR(clk_xin))
> + return dev_err_probe(dev, PTR_ERR(clk_xin), "clk_xin clock not found.\n");
>
> ret = clk_prepare_enable(sdhci_arasan->clk_ahb);
> - if (ret) {
> - dev_err(dev, "Unable to enable AHB clock.\n");
> - goto err_pltfm_free;
> - }
> + if (ret)
> + return dev_err_probe(dev, ret, "Unable to enable AHB clock.\n");
>
> /* If clock-frequency property is set, use the provided value */
> if (pltfm_host->clock &&
> @@ -2029,8 +2021,6 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
> clk_disable_unprepare(clk_xin);
> clk_dis_ahb:
> clk_disable_unprepare(sdhci_arasan->clk_ahb);
> -err_pltfm_free:
> - sdhci_pltfm_free(pdev);
> return ret;
> }
>
I don't have problem with this change but your series is just wrong. Because
"mmc: sdhci-pltfm: Drop the use of sdhci_pltfm_free()"
is just removing this function before you convert all drivers. It means you just
break bisectability of tree which is clear NACK.
Thanks,
Michal
next prev parent reply other threads:[~2025-05-26 7:34 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-26 6:05 [PATCH 00/34] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage Binbin Zhou
2025-05-26 6:05 ` [PATCH 01/34] mmc: sdhci: Use devm_mmc_alloc_host() helper Binbin Zhou
2025-05-26 6:27 ` Adrian Hunter
2025-05-26 6:46 ` Binbin Zhou
2025-05-26 6:05 ` [PATCH 02/34] mmc: sdhci-acpi: Drop the use of sdhci_free_host() Binbin Zhou
2025-05-26 6:05 ` [PATCH 03/34] mmc: sdhci-milbeaut: " Binbin Zhou
2025-05-26 6:05 ` [PATCH 04/34] mmc: sdhci-pci: " Binbin Zhou
2025-05-26 6:05 ` [PATCH 05/34] mmc: sdhci-s3c: " Binbin Zhou
2025-05-26 6:05 ` [PATCH 06/34] mmc: sdhci-spear: " Binbin Zhou
2025-05-26 6:05 ` [PATCH 07/34] mmc: sdhci-pltfm: Drop the use of sdhci_pltfm_free() Binbin Zhou
2025-05-26 6:05 ` [PATCH 08/34] mmc: sdhci-bcm-kona: " Binbin Zhou
2025-05-26 6:05 ` [PATCH 09/34] mmc: sdhci-brcmstb: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 10/34] mmc: sdhci-cadence: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 11/34] mmc: sdhci-dove: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 12/34] mmc: sdhci-esdhc-imx: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 13/34] mmc: sdhci-esdhc-mcf: " Binbin Zhou
2025-05-28 8:00 ` Angelo Dureghello
2025-05-28 8:05 ` Angelo Dureghello
2025-05-26 6:06 ` [PATCH 14/34] mmc: sdhci-iproc: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 15/34] mmc: sdhci-msm: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 16/34] mmc: sdhci-npcm: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 17/34] mmc: sdhci-of-arasan: " Binbin Zhou
2025-05-26 7:34 ` Michal Simek [this message]
2025-05-26 7:48 ` Binbin Zhou
2025-05-26 6:06 ` [PATCH 18/34] mmc: sdhci-of-aspeed: " Binbin Zhou
2025-05-28 0:43 ` Andrew Jeffery
2025-05-28 4:42 ` Binbin Zhou
2025-05-29 0:46 ` Andrew Jeffery
2025-05-26 6:06 ` [PATCH 19/34] mmc: sdhci-of-at91: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 20/34] mmc: sdhci-of-dwcmshc: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 21/34] mmc: sdhci-of-esdhc: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 22/34] mmc: sdhci-of-k1: " Binbin Zhou
2025-05-26 10:04 ` Yixun Lan
2025-05-26 6:06 ` [PATCH 23/34] mmc: sdhci-of-ma35d1: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 24/34] mmc: sdhci-of-sparx5: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 25/34] mmc: sdhci-omap: " Binbin Zhou
2025-05-26 6:06 ` [PATCH 26/34] mmc: sdhci-pic32: " Binbin Zhou
2025-05-26 6:07 ` [PATCH 27/34] mmc: sdhci-pxav2: " Binbin Zhou
2025-05-26 6:07 ` [PATCH 28/34] mmc: sdhci-pxav3: " Binbin Zhou
2025-05-26 6:07 ` [PATCH 29/34] mmc: sdhci-sprd: " Binbin Zhou
2025-05-28 3:31 ` Chunyan Zhang
2025-05-26 6:07 ` [PATCH 30/34] mmc: sdhci-st: " Binbin Zhou
2025-05-26 6:07 ` [PATCH 31/34] mmc: sdhci-tegra: " Binbin Zhou
2025-05-26 6:07 ` [PATCH 32/34] mmc: sdhci-xenon: " Binbin Zhou
2025-05-26 6:07 ` [PATCH 33/34] mmc: sdhci_am654: " Binbin Zhou
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=dec009ac-e185-4aca-986c-a8dda48fce19@amd.com \
--to=michal.simek@amd.com \
--cc=adrian.hunter@intel.com \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=zhoubb.aaron@gmail.com \
--cc=zhoubinbin@loongson.cn \
/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