]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
mmc: sdhci: tegra: remove duplicate pwrdet call
authorBitan Biswas <bbiswas@nvidia.com>
Mon, 22 Sep 2014 13:45:08 +0000 (19:15 +0530)
committerBitan Biswas <bbiswas@nvidia.com>
Thu, 25 Sep 2014 00:54:44 +0000 (17:54 -0700)
Duplicate power detect call for sdmmc was merged
by mistake. Removing the duplicate call.

bug 1531762
bug 1548669

Change-Id: I33949558e0d3a26c46d95e018ac86fd67eedcf8e
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/501273

drivers/mmc/host/sdhci-tegra.c

index 60161b13bf8fca7a7290a63a5294d24c3f1b7603..d170ed536bb9893352a62683fb7631d0ecbd5833 100644 (file)
@@ -4561,8 +4561,6 @@ static int sdhci_tegra_probe(struct platform_device *pdev)
        const char *parent_clk_list[TEGRA_SDHCI_MAX_PLL_SOURCE];
        int rc;
        u8 i;
-       unsigned int vddio_prev;
-       unsigned int vddio_new;
 
        for (i = 0; i < ARRAY_SIZE(parent_clk_list); i++)
                parent_clk_list[i] = NULL;
@@ -4762,8 +4760,6 @@ static int sdhci_tegra_probe(struct platform_device *pdev)
                        "vddio_sdmmc", PTR_ERR(tegra_host->vdd_io_reg));
                tegra_host->vdd_io_reg = NULL;
        } else {
-               vddio_prev = regulator_get_voltage(tegra_host->vdd_io_reg);
-               /* Read old voltage before change */
                rc = tegra_sdhci_configure_regulators(tegra_host,
                        CONFIG_REG_SET_VOLT,
                        tegra_host->vddio_min_uv,
@@ -4775,19 +4771,6 @@ static int sdhci_tegra_probe(struct platform_device *pdev)
                                tegra_host->vddio_max_uv, rc);
                        regulator_put(tegra_host->vdd_io_reg);
                        tegra_host->vdd_io_reg = NULL;
-               } else if (soc_data->nvquirks2 & NVQUIRK2_CONFIG_PWR_DET) {
-                       vddio_new = regulator_get_voltage(
-                               tegra_host->vdd_io_reg);
-                       if ((vddio_prev == vddio_new) &&
-                               (vddio_new == SDHOST_LOW_VOLT_MIN)) {
-                               if (tegra_host->instance == SDMMC1_INSTANCE)
-                                       pwr_detect_bit_write(
-                                               SDMMC1_PWR_DET, false);
-                               else if (tegra_host->instance ==
-                                       SDMMC3_INSTANCE)
-                                       pwr_detect_bit_write(
-                                               SDMMC3_PWR_DET, false);
-                       }
                }
        }