Skip to content

Commit 9fab938

Browse files
Sai Krishna PotthuriUlf Hansson
authored andcommitted
mmc: sdhci-of-arasan: Skip setting clock delay for 400KHz
Clock delay settings are not defined for 400KHz, so add frequency check to skip calling the clock delay settings when frequency is <=400KHz. Signed-off-by: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Link: https://lore.kernel.org/r/20230403102551.3763054-4-sai.krishna.potthuri@amd.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent b095f4f commit 9fab938

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mmc/host/sdhci-of-arasan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ static void sdhci_arasan_set_clock(struct sdhci_host *host, unsigned int clock)
406406
}
407407

408408
/* Set the Input and Output Clock Phase Delays */
409-
if (clk_data->set_clk_delays)
409+
if (clk_data->set_clk_delays && clock > PHY_CLK_TOO_SLOW_HZ)
410410
clk_data->set_clk_delays(host);
411411

412412
if (sdhci_arasan->internal_phy_reg && clock >= MIN_PHY_CLK_HZ) {

0 commit comments

Comments
 (0)