|
@@ -56,7 +56,7 @@ static int sdhci_sirf_execute_tuning(struct sdhci_host *host, u32 opcode)
|
|
|
int tuning_seq_cnt = 3;
|
|
|
u8 phase, tuned_phases[SIRF_TUNING_COUNT];
|
|
|
u8 tuned_phase_cnt = 0;
|
|
|
- int rc, longest_range = 0;
|
|
|
+ int rc = 0, longest_range = 0;
|
|
|
int start = -1, end = 0, tuning_value = -1, range = 0;
|
|
|
u16 clock_setting;
|
|
|
struct mmc_host *mmc = host->mmc;
|
|
@@ -68,7 +68,7 @@ retry:
|
|
|
phase = 0;
|
|
|
do {
|
|
|
sdhci_writel(host,
|
|
|
- clock_setting | phase | (phase << 7) | (phase << 16),
|
|
|
+ clock_setting | phase,
|
|
|
SDHCI_CLK_DELAY_SETTING);
|
|
|
|
|
|
if (!mmc_send_tuning(mmc)) {
|
|
@@ -102,7 +102,7 @@ retry:
|
|
|
*/
|
|
|
phase = tuning_value;
|
|
|
sdhci_writel(host,
|
|
|
- clock_setting | phase | (phase << 7) | (phase << 16),
|
|
|
+ clock_setting | phase,
|
|
|
SDHCI_CLK_DELAY_SETTING);
|
|
|
|
|
|
dev_dbg(mmc_dev(mmc), "%s: Setting the tuning phase to %d\n",
|