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

mmc: core: expose MMC_CAP2_NO_* to dt

The reason for why we expose these to dt is that some of
the controller is unable to send special cmd type due to
the hw limitation.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Shawn Lin and committed by
Ulf Hansson
6ae3e537 5f1d1434

+6
+6
drivers/mmc/core/host.c
··· 315 315 host->caps2 |= MMC_CAP2_HS400_1_2V | MMC_CAP2_HS200_1_2V_SDR; 316 316 if (of_property_read_bool(np, "mmc-hs400-enhanced-strobe")) 317 317 host->caps2 |= MMC_CAP2_HS400_ES; 318 + if (of_property_read_bool(np, "no-sdio")) 319 + host->caps2 |= MMC_CAP2_NO_SDIO; 320 + if (of_property_read_bool(np, "no-sd")) 321 + host->caps2 |= MMC_CAP2_NO_SD; 322 + if (of_property_read_bool(np, "no-mmc")) 323 + host->caps2 |= MMC_CAP2_NO_MMC; 318 324 319 325 host->dsr_req = !of_property_read_u32(np, "dsr", &host->dsr); 320 326 if (host->dsr_req && (host->dsr & ~0xffff)) {