]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci_am654: Fix SLOTTYPE write
authorFaiz Abbas <faiz_abbas@ti.com>
Tue, 28 May 2019 09:59:26 +0000 (15:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:19:17 +0000 (12:19 +0200)
commit 7397993145872c74871ab2aa7fa26a427144088a upstream.

In the call to regmap_update_bits() for SLOTTYPE, the mask and value
fields are exchanged. Fix this.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Fixes: 41fd4caeb00b ("mmc: sdhci_am654: Add Initial Support for AM654 SDHCI driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci_am654.c

index eea183e90f1bab49e189a320ac7934233cdc20e1..f427f04991a63fb51bd360e8a3d69393929a3019 100644 (file)
@@ -209,7 +209,7 @@ static int sdhci_am654_init(struct sdhci_host *host)
                ctl_cfg_2 = SLOTTYPE_EMBEDDED;
 
        regmap_update_bits(sdhci_am654->base, CTL_CFG_2,
-                          ctl_cfg_2, SLOTTYPE_MASK);
+                          SLOTTYPE_MASK, ctl_cfg_2);
 
        return sdhci_add_host(host);
 }