mirror of
https://gitee.com/bianbu-linux/linux-6.6-fh
synced 2025-04-18 21:54:44 -04:00
mmc: sdhci-of-k1x: Do not recovery sdr104 if no-1-8-v is enabled
Change-Id: I7993bbb2b24a0fa869f2be45cf25f5cbf484148d
This commit is contained in:
parent
9cefc6c141
commit
8aca758627
1 changed files with 3 additions and 1 deletions
|
@ -569,6 +569,7 @@ static int spacemit_sdhci_card_busy(struct mmc_host *mmc)
|
|||
static void spacemit_init_card_quriks(struct mmc_host *mmc, struct mmc_card *card)
|
||||
{
|
||||
struct k1x_sdhci_platdata *pdata = mmc->parent->platform_data;
|
||||
struct sdhci_host *host = mmc_priv(mmc);
|
||||
struct rx_tuning *rxtuning = &pdata->rxtuning;
|
||||
|
||||
if (mmc->caps2 & MMC_CAP2_NO_MMC) {
|
||||
|
@ -581,7 +582,8 @@ static void spacemit_init_card_quriks(struct mmc_host *mmc, struct mmc_card *car
|
|||
/* fallback bus speed */
|
||||
mmc->caps &= ~MMC_CAP_UHS_SDR104;
|
||||
rxtuning->tuning_fail = 0;
|
||||
} else if (!(pdata->host_caps_disable & MMC_CAP_UHS_SDR104)) {
|
||||
} else if (!(pdata->host_caps_disable & MMC_CAP_UHS_SDR104)
|
||||
&& !(host->quirks2 & SDHCI_QUIRK2_NO_1_8_V)) {
|
||||
/* recovery sdr104 capability */
|
||||
mmc->caps |= MMC_CAP_UHS_SDR104;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue