Skip to content

Commit f7bfc22

Browse files
MrVangregkh
authored andcommitted
mmc: sdhci-esdhc-imx: enable quirks SDHCI_QUIRK_NO_LED
[ Upstream commit 4dede2b ] Enable SDHCI_QUIRK_NO_LED for i.MX7ULP, i.MX8MM, i.MX8QXP and i.MXRT1050. Even there is LCTL register bit, there is no IOMUX PAD for it. So there is no sense to enable LED for SDHCI for these SoCs. Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Haibo Chen <[email protected]> Acked-by: Adrian Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent bc7ff55 commit f7bfc22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/mmc/host/sdhci-esdhc-imx.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ struct esdhc_platform_data {
238238

239239
struct esdhc_soc_data {
240240
u32 flags;
241+
u32 quirks;
241242
};
242243

243244
static const struct esdhc_soc_data esdhc_imx25_data = {
@@ -309,10 +310,12 @@ static struct esdhc_soc_data usdhc_imx7ulp_data = {
309310
| ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200
310311
| ESDHC_FLAG_PMQOS | ESDHC_FLAG_HS400
311312
| ESDHC_FLAG_STATE_LOST_IN_LPMODE,
313+
.quirks = SDHCI_QUIRK_NO_LED,
312314
};
313315
static struct esdhc_soc_data usdhc_imxrt1050_data = {
314316
.flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
315317
| ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200,
318+
.quirks = SDHCI_QUIRK_NO_LED,
316319
};
317320

318321
static struct esdhc_soc_data usdhc_imx8qxp_data = {
@@ -321,13 +324,15 @@ static struct esdhc_soc_data usdhc_imx8qxp_data = {
321324
| ESDHC_FLAG_HS400 | ESDHC_FLAG_HS400_ES
322325
| ESDHC_FLAG_STATE_LOST_IN_LPMODE
323326
| ESDHC_FLAG_CLK_RATE_LOST_IN_PM_RUNTIME,
327+
.quirks = SDHCI_QUIRK_NO_LED,
324328
};
325329

326330
static struct esdhc_soc_data usdhc_imx8mm_data = {
327331
.flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING
328332
| ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200
329333
| ESDHC_FLAG_HS400 | ESDHC_FLAG_HS400_ES
330334
| ESDHC_FLAG_STATE_LOST_IN_LPMODE,
335+
.quirks = SDHCI_QUIRK_NO_LED,
331336
};
332337

333338
struct pltfm_imx_data {
@@ -1687,6 +1692,7 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
16871692

16881693
imx_data->socdata = device_get_match_data(&pdev->dev);
16891694

1695+
host->quirks |= imx_data->socdata->quirks;
16901696
if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS)
16911697
cpu_latency_qos_add_request(&imx_data->pm_qos_req, 0);
16921698

0 commit comments

Comments
 (0)