From: Frank Li <Frank.li@nxp.com>
To: "Adrián García Casado" <adriangarciacasado42@gmail.com>
Cc: "Ulf Hansson" <ulf.hansson@linaro.org>,
"Adrian Hunter" <adrian.hunter@intel.com>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Jens Axboe" <axboe@kernel.dk>,
"Miri Korenblit" <miriam.rachel.korenblit@intel.com>,
"Miguel Ojeda" <miguel.ojeda.sandonis@gmail.com>,
"Haibo Chen" <haibo.chen@nxp.com>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Boqun Feng" <boqun@kernel.org>,
linux-mmc@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-block@vger.kernel.org, rust-for-linux@vger.kernel.org,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
"Adrián García Casado" <adriangarciacicuelo@gmail.com>
Subject: Re: [PATCH v2 3/3] mmc: sdhci-esdhc-imx: consolidate imx25/35 data and add Kingston CID
Date: Tue, 5 May 2026 12:28:21 -0400 [thread overview]
Message-ID: <afoapez6kwrPjvU2@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20260315172746.270734-4-adriangarciacasado42@gmail.com>
On Sun, Mar 15, 2026 at 06:26:40PM +0100, Adrián García Casado wrote:
> Consolidate esdhc_imx25 and esdhc_imx35 soc data into a single shared
> struct since they share the same flags. This reduces redundancy. Also
> add the CID_MANFID_KINGSTON definition to quirks.h for centralized
> management.
>
> Signed-off-by: Adrián García Casado <adriangarciacicuelo@gmail.com>
> ---
> drivers/mmc/core/quirks.h | 4 ++++
> drivers/mmc/host/sdhci-esdhc-imx.c | 12 ++++--------
> 2 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/mmc/core/quirks.h b/drivers/mmc/core/quirks.h
> index c417ed34c..d736bb4be 100644
> --- a/drivers/mmc/core/quirks.h
> +++ b/drivers/mmc/core/quirks.h
> @@ -15,6 +15,10 @@
>
> #include "card.h"
>
> +#ifndef CID_MANFID_KINGSTON
> +#define CID_MANFID_KINGSTON 0x70
> +#endif
> +
Where use it? It is un-related change with sdhci-esdhc-imx.c. Please split
it.
Frank
> static const struct mmc_fixup __maybe_unused mmc_sd_fixups[] = {
> /*
> * Kingston Canvas Go! Plus microSD cards never finish SD cache flush.
> diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
> index a7a5df673..9cfa26722 100644
> --- a/drivers/mmc/host/sdhci-esdhc-imx.c
> +++ b/drivers/mmc/host/sdhci-esdhc-imx.c
> @@ -256,11 +256,7 @@ struct esdhc_soc_data {
> u32 quirks;
> };
>
> -static const struct esdhc_soc_data esdhc_imx25_data = {
> - .flags = ESDHC_FLAG_ERR004536,
> -};
> -
> -static const struct esdhc_soc_data esdhc_imx35_data = {
> +static const struct esdhc_soc_data esdhc_imx25_35_data = {
> .flags = ESDHC_FLAG_ERR004536,
> };
>
> @@ -391,8 +387,8 @@ struct pltfm_imx_data {
> };
>
> static const struct of_device_id imx_esdhc_dt_ids[] = {
> - { .compatible = "fsl,imx25-esdhc", .data = &esdhc_imx25_data, },
> - { .compatible = "fsl,imx35-esdhc", .data = &esdhc_imx35_data, },
> + { .compatible = "fsl,imx25-esdhc", .data = &esdhc_imx25_35_data, },
> + { .compatible = "fsl,imx35-esdhc", .data = &esdhc_imx25_35_data, },
> { .compatible = "fsl,imx51-esdhc", .data = &esdhc_imx51_data, },
> { .compatible = "fsl,imx53-esdhc", .data = &esdhc_imx53_data, },
> { .compatible = "fsl,imx6sx-usdhc", .data = &usdhc_imx6sx_data, },
> @@ -414,7 +410,7 @@ MODULE_DEVICE_TABLE(of, imx_esdhc_dt_ids);
>
> static inline int is_imx25_esdhc(struct pltfm_imx_data *data)
> {
> - return data->socdata == &esdhc_imx25_data;
> + return data->socdata == &esdhc_imx25_35_data;
> }
>
> static inline int is_imx53_esdhc(struct pltfm_imx_data *data)
> --
> 2.47.3
>
next prev parent reply other threads:[~2026-05-05 16:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-15 17:26 [PATCH v2 0/3] Optimization and alignment for MMC, Rust and iwlwifi Adrián García Casado
2026-03-15 17:26 ` [PATCH v2 1/3] wifi: iwlwifi: pcie: optimize MSI-X interrupt affinity Adrián García Casado
2026-03-15 17:26 ` [PATCH v2 2/3] rust: block: rnull: update to Pin<KBox<QueueData>> for PinInit Adrián García Casado
2026-03-15 17:26 ` [PATCH v2 3/3] mmc: sdhci-esdhc-imx: consolidate imx25/35 data and add Kingston CID Adrián García Casado
2026-05-05 16:28 ` Frank Li [this message]
2026-05-06 6:04 ` Adrian Hunter
2026-03-15 18:21 ` [PATCH v2 0/3] Optimization and alignment for MMC, Rust and iwlwifi Miguel Ojeda
-- strict thread matches above, loose matches on Subject: below --
2026-03-15 17:25 Adrián García Casado
2026-03-15 17:25 ` [PATCH v2 3/3] mmc: sdhci-esdhc-imx: consolidate imx25/35 data and add Kingston CID Adrián García Casado
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=afoapez6kwrPjvU2@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=a.hindborg@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=adriangarciacasado42@gmail.com \
--cc=adriangarciacicuelo@gmail.com \
--cc=axboe@kernel.dk \
--cc=boqun@kernel.org \
--cc=haibo.chen@nxp.com \
--cc=imx@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=miguel.ojeda.sandonis@gmail.com \
--cc=miriam.rachel.korenblit@intel.com \
--cc=rust-for-linux@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--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