History

Merge tag 'mmc-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc

Pull MMC fixes from Ulf Hansson: - meson-gx: Revert to earlier tuning process - bcm2835: Don't overwrite max frequency unconditionally * tag 'mmc-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: mmc: bcm2835: Don't overwrite max frequency unconditionally Revert "mmc: meson-gx: include tx phase in the tuning process"

Linus Torvalds committed 8 years ago

Commit fa2139e2 parents 4b6415f 118032b2 files · +3 −19Browse files

Unified · Split

2 files
  1. drivers/mmc/host/bcm2835.c +2 −1
  2. drivers/mmc/host/meson-gx-mmc.c +1 −18
drivers/mmc/host/bcm2835.c+2−1
@@ -1265,7 +1265,8 @@ static int bcm2835_add_host(struct bcm2835_host *host) · 1264 unmodified lines
12651265 char pio_limit_string[20];
12661266 int ret;
12671267
1268− mmc->f_max = host->max_clk;
1268+ if (!mmc->f_max || mmc->f_max > host->max_clk)
1269+ mmc->f_max = host->max_clk;
12691270 mmc->f_min = host->max_clk / SDCDIV_MAX_CDIV;
12701271
12711272 mmc->max_busy_timeout = ~0 / (mmc->f_max / 1000);
drivers/mmc/host/meson-gx-mmc.c+1−18
@@ -717,22 +717,6 @@ static int meson_mmc_clk_phase_tuning(struct mmc_host *mmc, u32 opcode, · 716 unmodified lines
717717 static int meson_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode)
718718 {
719719 struct meson_host *host = mmc_priv(mmc);
720− int ret;
721−
722− /*
723− * If this is the initial tuning, try to get a sane Rx starting
724− * phase before doing the actual tuning.
725− */
726− if (!mmc->doing_retune) {
727− ret = meson_mmc_clk_phase_tuning(mmc, opcode, host->rx_clk);
728−
729− if (ret)
730− return ret;
731− }
732−
733− ret = meson_mmc_clk_phase_tuning(mmc, opcode, host->tx_clk);
734− if (ret)
735− return ret;
736720
737721 return meson_mmc_clk_phase_tuning(mmc, opcode, host->rx_clk);
738722 }
@@ -763,9 +747,8 @@ static void meson_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) · 24 unmodified lines
763747 if (!IS_ERR(mmc->supply.vmmc))
764748 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
765749
766− /* Reset phases */
750+ /* Reset rx phase */
767751 clk_set_phase(host->rx_clk, 0);
768− clk_set_phase(host->tx_clk, 270);
769752
770753 break;
771754