memory: tegra30-emc: Correct error message for timed out auto calibration
authorDmitry Osipenko <digetx@gmail.com>
Fri, 20 Dec 2019 02:08:49 +0000 (05:08 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 10 Jan 2020 14:48:48 +0000 (15:48 +0100)
The code waits for auto calibration to be finished and not to be disabled.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/tegra30-emc.c

index 6f7bc90..e3efd95 100644 (file)
@@ -639,8 +639,7 @@ static int emc_prepare_timing_change(struct tegra_emc *emc, unsigned long rate)
                                !(val & EMC_AUTO_CAL_STATUS_ACTIVE), 1, 300);
                        if (err) {
                                dev_err(emc->dev,
-                                       "failed to disable auto-cal: %d\n",
-                                       err);
+                                       "auto-cal finish timeout: %d\n", err);
                                return err;
                        }