Skip to content

Commit 6fac4a3

Browse files
committed
Merge branch 'fixes' into next
2 parents 9e84a2e + 2a187d0 commit 6fac4a3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

drivers/mmc/host/sdhci-tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static void tegra_sdhci_reset(struct sdhci_host *host, u8 mask)
386386
misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_DDR50;
387387
if (soc_data->nvquirks & NVQUIRK_ENABLE_SDR104)
388388
misc_ctrl |= SDHCI_MISC_CTRL_ENABLE_SDR104;
389-
if (soc_data->nvquirks & SDHCI_MISC_CTRL_ENABLE_SDR50)
389+
if (soc_data->nvquirks & NVQUIRK_ENABLE_SDR50)
390390
clk_ctrl |= SDHCI_CLOCK_CTRL_SDR50_TUNING_OVERRIDE;
391391
}
392392

drivers/mmc/host/sdhci.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4133,11 +4133,13 @@ int sdhci_setup_host(struct sdhci_host *host)
41334133
if (host->ops->get_min_clock)
41344134
mmc->f_min = host->ops->get_min_clock(host);
41354135
else if (host->version >= SDHCI_SPEC_300) {
4136-
if (host->clk_mul) {
4137-
mmc->f_min = (host->max_clk * host->clk_mul) / 1024;
4136+
if (host->clk_mul)
41384137
max_clk = host->max_clk * host->clk_mul;
4139-
} else
4140-
mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_300;
4138+
/*
4139+
* Divided Clock Mode minimum clock rate is always less than
4140+
* Programmable Clock Mode minimum clock rate.
4141+
*/
4142+
mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_300;
41414143
} else
41424144
mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_200;
41434145

0 commit comments

Comments
 (0)