Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: core: add support for disabling HS400 mode via DT

On some boards the data strobe line isn't wired up, rendering HS400
support broken, even if both the controller and the eMMC claim to
support it. Allow to disable HS400 mode via DT.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Link: https://lore.kernel.org/r/20210510190400.105162-3-l.stach@pengutronix.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Lucas Stach and committed by
Ulf Hansson
f722e650 2991ad76

+3
+3
drivers/mmc/core/host.c
··· 388 388 host->caps2 |= MMC_CAP2_NO_SD; 389 389 if (device_property_read_bool(dev, "no-mmc")) 390 390 host->caps2 |= MMC_CAP2_NO_MMC; 391 + if (device_property_read_bool(dev, "no-mmc-hs400")) 392 + host->caps2 &= ~(MMC_CAP2_HS400_1_8V | MMC_CAP2_HS400_1_2V | 393 + MMC_CAP2_HS400_ES); 391 394 392 395 /* Must be after "non-removable" check */ 393 396 if (device_property_read_u32(dev, "fixed-emmc-driver-type", &drv_type) == 0) {