We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49b14db commit dcc3bcfCopy full SHA for dcc3bcf
drivers/mmc/host/sdhci.c
@@ -2065,15 +2065,10 @@ void sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
2065
2066
host->mmc->actual_clock = 0;
2067
2068
- clk = sdhci_readw(host, SDHCI_CLOCK_CONTROL);
2069
- if (clk & SDHCI_CLOCK_CARD_EN)
2070
- sdhci_writew(host, clk & ~SDHCI_CLOCK_CARD_EN,
2071
- SDHCI_CLOCK_CONTROL);
+ sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL);
2072
2073
- if (clock == 0) {
2074
- sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL);
+ if (clock == 0)
2075
return;
2076
- }
2077
2078
clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock);
2079
sdhci_enable_clk(host, clk);
0 commit comments