mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
sdhci: don't assign mmc->caps at SDHCI directly
Some host controllers can set mmc->caps before sdhci_add_host(). Signed-off-by: Kyungmin Park <[email protected]> Cc: Grant Likely <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ae6d6c9221
commit
c1f5977c6a
1 changed files with 1 additions and 1 deletions
|
|
@ -1797,7 +1797,7 @@ int sdhci_add_host(struct sdhci_host *host)
|
|||
else
|
||||
mmc->f_min = host->max_clk / 256;
|
||||
mmc->f_max = host->max_clk;
|
||||
mmc->caps = MMC_CAP_SDIO_IRQ;
|
||||
mmc->caps |= MMC_CAP_SDIO_IRQ;
|
||||
|
||||
if (!(host->quirks & SDHCI_QUIRK_FORCE_1_BIT_DATA))
|
||||
mmc->caps |= MMC_CAP_4_BIT_DATA;
|
||||
|
|
|
|||
Loading…
Reference in a new issue