|
@@ -158,6 +158,8 @@ static void sdhci_s3c_set_clock(struct sdhci_host *host, unsigned int clock)
|
|
int src;
|
|
int src;
|
|
u32 ctrl;
|
|
u32 ctrl;
|
|
|
|
|
|
|
|
+ host->mmc->actual_clock = 0;
|
|
|
|
+
|
|
/* don't bother if the clock is going off. */
|
|
/* don't bother if the clock is going off. */
|
|
if (clock == 0)
|
|
if (clock == 0)
|
|
return;
|
|
return;
|
|
@@ -292,6 +294,8 @@ static void sdhci_cmu_set_clock(struct sdhci_host *host, unsigned int clock)
|
|
unsigned long timeout;
|
|
unsigned long timeout;
|
|
u16 clk = 0;
|
|
u16 clk = 0;
|
|
|
|
|
|
|
|
+ host->mmc->actual_clock = 0;
|
|
|
|
+
|
|
/* If the clock is going off, set to 0 at clock control register */
|
|
/* If the clock is going off, set to 0 at clock control register */
|
|
if (clock == 0) {
|
|
if (clock == 0) {
|
|
sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL);
|
|
sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL);
|