RE: [PATCH 2/2] mmc: sdhci-of-aspeed: Add ast2700 support
Ryan Chen <[email protected]>
| Newsgroups | org.ozlabs.lists.openbmc,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-mmc,org.ozlabs.lists.linux-aspeed |
|---|---|
| Message-ID | <TY2PPF5CB9A1BE65A7A9825422A33715320F240A@TY2PPF5CB9A1BE6.apcprd06.prod.outlook.com> |
> Subject: Re: [PATCH 2/2] mmc: sdhci-of-aspeed: Add ast2700 support > > On Sa, 2026-03-14 at 01:21 +0000, Ryan Chen wrote: > [...] > > > > > > Thanks the guidance. > > > I will update use > > > sdc->rst = devm_reset_control_get_optional_exclusive(&pdev->dev, > > > sdc->NULL); > > > if (IS_ERR(sdc->rst)) > > > return dev_err_probe(&pdev->dev, PTR_ERR(sdc->rst), > > > "unable to acquire reset\n"); > > > > > Sorry, I review the > > devm_reset_control_get_optional_exclusive_deasserted > > I will modify with following in probe. > > > > sdc->rst = > devm_reset_control_get_optional_exclusive_deasserted(&pdev->dev, > > NULL); > > if (IS_ERR(sdc->rst)) > > return dev_err_probe(&pdev->dev, PTR_ERR(sdc->rst), > > "unable to acquire reset\n"); > > > > And add reset_control_assert(sdc->rst); in remove. > > Only do one of those two changes. The devm_..._deasserted() function will call > reset_control_assert() automatically. See: > > https://docs.kernel.org/driver-api/reset.html#c.devm_reset_control_get_optio > nal_exclusive_deasserted > Understood. thanks for guidance.