From nobody Tue Apr 7 09:21:02 2026 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B594E376BD6 for ; Sun, 15 Mar 2026 17:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773595524; cv=none; b=qSsCtZ7E/cle1wPIV63w8JcHDE0s1y9odxMCClpKGqXb1oJwybfOMeo7i5bjmzrjYcrFWJuTx6zQHST1hLnhhDzPUsq+44q+b2jyGqZankAq5QGFsBxfcXe/dFUkAve243bBzVLTNDFe38ASJr7Lx4CeWDamkVRBkR8ph3nwRLg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773595524; c=relaxed/simple; bh=X32PXM6CIYzypQR5TwfD7Jn/cbq77OlrCWR99DHxUpQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MJhlKvMOgiKOV7j3pBG+tVeQ2l62D8wPk2rvjg5/Ocob+N6cu0xLmYvC1PiASXgV35f21VIuJOY33+3kF5t2UkdKkrX+uuHSfrZGv/vZHuv3C5qN1mNbxRV4N6wWlbFmaZwkXkOc47t/6qREYP3leztSXWuSfuAO9tgzAcNfoyM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OVn/lJIS; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OVn/lJIS" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4853aec185aso31192375e9.1 for ; Sun, 15 Mar 2026 10:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773595520; x=1774200320; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ubQ1v6PBsq99cAcF2yrnS1WsB85d1f/acmJVUU/lg1s=; b=OVn/lJISE6nIYTVJ/aLvnPsBrPeMZbwCysxgFTAiV7KsOpGZZ1N+8CoWT4pza/yvHz pCvfPpuYfn/UsJcvGHOItAspz4fKEDIx1Xg2rj9HJBExqWW09yEZ5qDxTKIQ0HnVEaws eWd1/riC2qzHSgIfO6qIGErNFVTRVW2pUAi7neTLkK5+mXIBLO8Yq7xQc1Jf9Y4hMvGf FK2yq+acgLUukcvmtR2Ona064ozquy6IygiZgrPaxegHnU4343kpPQUjoVoj2GGokC45 bBjH11U305OTpOgSay8gv+wp73nEd5biFLR/nwFUHL8oivBCysLyAz6eM8lDI77pJHIA F9Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773595520; x=1774200320; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ubQ1v6PBsq99cAcF2yrnS1WsB85d1f/acmJVUU/lg1s=; b=WyEgFxuavdPjxmb7YPTiaadiqtsxL0iupym9Tnn5dcdrenfdeV0/6F7/TG/GjzxmoJ NnbD2m2cNPNNN6LV+eQ2DBQ+8BznIFZtE2olTulNLhMrd2r2MGdhpuDXXn75JEWRw0LN s3RR5zwmzHapon6k9Y79kLmFEBSnTB1t+94ppZIow+sUZ/9sn9RkwImc/OcNxGYjePtH Vmm+UeNVlJWxqcNGXeFquA46wp2vuxLIWRSTW3Ec51/P5Uf6YNiHw3qKnVh+JfiA4hXp zE5K8MRkutxxfQS96/wum/0pu5cXhudTHra5R5ARgI/fzhYsnZDhtl5CMuvWMvYFO7dE /OxA== X-Forwarded-Encrypted: i=1; AJvYcCUbE1+6RKpRiqT7sVoO5edZu7h8ZViX+iZEPREsBf0sufzf0jWe/s/o2GsFBSKCWj1xTfH5lyn3Q2R/5lQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyQOJ5FBzuT3MO/LlS2KPC5O46LTeYQkZWIIDbWA5mfWZbA8ISF TbP9X6yrYDjSbi3NUZXcuuRyNzmkMQ/kO2o1Fuv9/QCfchYypAVUWlL4 X-Gm-Gg: ATEYQzzkCXzyysGj7DNYTrJSRh93MVHkeiBEWctdH49fEEGk+iuU7Hm3uSiX0wDiC5w GlBR2jDp23cB3PuAQSSgs6Ozl/+RMYO4/DIi/b+ipmh5GXCI/jBWw/Ol8GzcwuEyhkt/YC2s6sA yVlWFV3cQYLKIwBlhel1AAuoZZBckLaHoMoGqKojDIJS5zVzcSiy41IJldL8EGJOTqYMww+PP52 okw5eTvlwbTmsOUfRjTlPx4PRyYfZ4oMSUEnziIalL8RepPuWJ9IWIWfDPY5iqT7tx1CTKikC13 N9RqxqaXnLDwchg1PyF3043ucVMbm6I7pRE2XMz++9jzxHZe1sYnHNbdE+N306hvKRERy+gPkf2 g05CdbeS3yrjZHiWE9gJ68aSdQ1oyqVIhXCrPocGU5N0KplH7Xt3qv/06EVvJVN5pLUdWEu48je inXZb+nSNS3wJ15VY8odorlXj2OBIznEgqWZZBU4E2S9D6ng== X-Received: by 2002:a05:600c:4592:b0:485:3dfc:57a with SMTP id 5b1f17b1804b1-4855671044fmr171605205e9.32.1773595519800; Sun, 15 Mar 2026 10:25:19 -0700 (PDT) Received: from debian.lan ([171.22.84.130]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48541aa73easm457168325e9.3.2026.03.15.10.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2026 10:25:19 -0700 (PDT) From: =?UTF-8?q?Adri=C3=A1n=20Garc=C3=ADa=20Casado?= To: Ulf Hansson , Adrian Hunter , Andreas Hindborg , Jens Axboe , Miri Korenblit Cc: Miguel Ojeda , Haibo Chen , Frank Li , Sascha Hauer , Boqun Feng , 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, =?UTF-8?q?Adri=C3=A1n=20Garc=C3=ADa=20Casado?= , Adrian Garcia Cicuelo Subject: [PATCH v2 3/3] mmc: sdhci-esdhc-imx: consolidate imx25/35 data and add Kingston CID Date: Sun, 15 Mar 2026 18:25:07 +0100 Message-ID: <20260315172507.270480-4-adriangarciacasado42@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260315172507.270480-1-adriangarciacasado42@gmail.com> References: <20260315172507.270480-1-adriangarciacasado42@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: Adrian Garcia Cicuelo --- 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 @@ =20 #include "card.h" =20 +#ifndef CID_MANFID_KINGSTON +#define CID_MANFID_KINGSTON 0x70 +#endif + static const struct mmc_fixup __maybe_unused mmc_sd_fixups[] =3D { /* * 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-es= dhc-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; }; =20 -static const struct esdhc_soc_data esdhc_imx25_data =3D { - .flags =3D ESDHC_FLAG_ERR004536, -}; - -static const struct esdhc_soc_data esdhc_imx35_data =3D { +static const struct esdhc_soc_data esdhc_imx25_35_data =3D { .flags =3D ESDHC_FLAG_ERR004536, }; =20 @@ -391,8 +387,8 @@ struct pltfm_imx_data { }; =20 static const struct of_device_id imx_esdhc_dt_ids[] =3D { - { .compatible =3D "fsl,imx25-esdhc", .data =3D &esdhc_imx25_data, }, - { .compatible =3D "fsl,imx35-esdhc", .data =3D &esdhc_imx35_data, }, + { .compatible =3D "fsl,imx25-esdhc", .data =3D &esdhc_imx25_35_data, }, + { .compatible =3D "fsl,imx35-esdhc", .data =3D &esdhc_imx25_35_data, }, { .compatible =3D "fsl,imx51-esdhc", .data =3D &esdhc_imx51_data, }, { .compatible =3D "fsl,imx53-esdhc", .data =3D &esdhc_imx53_data, }, { .compatible =3D "fsl,imx6sx-usdhc", .data =3D &usdhc_imx6sx_data, }, @@ -414,7 +410,7 @@ MODULE_DEVICE_TABLE(of, imx_esdhc_dt_ids); =20 static inline int is_imx25_esdhc(struct pltfm_imx_data *data) { - return data->socdata =3D=3D &esdhc_imx25_data; + return data->socdata =3D=3D &esdhc_imx25_35_data; } =20 static inline int is_imx53_esdhc(struct pltfm_imx_data *data) --=20 2.47.3