From: Krzysztof Kozlowski <krzk@kernel.org>
To: Ryan Chen <ryan_chen@aspeedtech.com>
Cc: Andrew Jeffery <andrew@codeconstruct.com.au>,
Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Joel Stanley <joel@jms.id.au>,
Ryan Chen <ryanchen.aspeed@gmail.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Andrew Jeffery <andrew@aj.id.au>,
linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org,
linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] mmc: sdhci-of-aspeed: Add ast2700 support
Date: Sat, 14 Mar 2026 11:23:52 +0100 [thread overview]
Message-ID: <20260314-flat-topaz-peacock-440a9c@quoll> (raw)
In-Reply-To: <20260313-sdhci-v1-2-91cea19c8a67@aspeedtech.com>
On Fri, Mar 13, 2026 at 01:27:57PM +0800, Ryan Chen wrote:
> Add support for the AST2700 SOC in the sd controller driver. AST2700 sd
> controller requires an reset line, so hook up the optional reset control
> and deassert it during probe.
>
> Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
> ---
> drivers/mmc/host/sdhci-of-aspeed.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c
> index ca97b01996b1..91c36245e506 100644
> --- a/drivers/mmc/host/sdhci-of-aspeed.c
> +++ b/drivers/mmc/host/sdhci-of-aspeed.c
> @@ -520,6 +520,7 @@ static int aspeed_sdc_probe(struct platform_device *pdev)
>
> {
> struct device_node *parent, *child;
> + struct reset_control *reset;
> struct aspeed_sdc *sdc;
> int ret;
>
> @@ -529,6 +530,15 @@ static int aspeed_sdc_probe(struct platform_device *pdev)
>
> spin_lock_init(&sdc->lock);
>
> + reset = reset_control_get_optional_exclusive(&pdev->dev, NULL);
> + if (IS_ERR(reset))
> + return dev_err_probe(&pdev->dev, PTR_ERR(reset),
> + "unable to acquire reset\n");
> + ret = reset_control_deassert(sdc->rst);
> + if (ret)
> + return dev_err_probe(&pdev->dev, ret,
> + "reset deassert failed\n");
> +
> sdc->clk = devm_clk_get(&pdev->dev, NULL);
> if (IS_ERR(sdc->clk))
> return PTR_ERR(sdc->clk);
> @@ -577,6 +587,7 @@ static const struct of_device_id aspeed_sdc_of_match[] = {
> { .compatible = "aspeed,ast2400-sd-controller", },
> { .compatible = "aspeed,ast2500-sd-controller", },
> { .compatible = "aspeed,ast2600-sd-controller", },
> + { .compatible = "aspeed,ast2700-sd-controller", },
So devices are fully compatible. You must express it in the bindings and
drop this hunk.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-03-14 10:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 5:27 [PATCH 0/2] Add AST2700 support for aspeed sdhci Ryan Chen
2026-03-13 5:27 ` [PATCH 1/2] dt-bindings: mmc: sdhci-of-aspeed : Add ast2700 support Ryan Chen
2026-03-14 10:23 ` Krzysztof Kozlowski
2026-03-16 1:59 ` Ryan Chen
2026-03-14 10:24 ` Krzysztof Kozlowski
2026-03-13 5:27 ` [PATCH 2/2] mmc: sdhci-of-aspeed: " Ryan Chen
2026-03-13 8:25 ` Philipp Zabel
2026-03-13 8:35 ` Ryan Chen
2026-03-14 1:21 ` Ryan Chen
2026-03-16 9:44 ` Philipp Zabel
2026-03-16 9:51 ` Ryan Chen
2026-03-14 10:23 ` Krzysztof Kozlowski [this message]
2026-03-16 5:51 ` Ryan Chen
2026-03-14 20:39 ` kernel test robot
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=20260314-flat-topaz-peacock-440a9c@quoll \
--to=krzk@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=andrew@aj.id.au \
--cc=andrew@codeconstruct.com.au \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=joel@jms.id.au \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=ryan_chen@aspeedtech.com \
--cc=ryanchen.aspeed@gmail.com \
--cc=ulf.hansson@linaro.org \
/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