]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 3 Jun 2019 13:18:25 +0000 (15:18 +0200)
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>
drivers/mmc/host/sdhci_am654.c

index a91c0b45c48d121816467ee51ea708882c7d831d..3222ea4d584d30c98c63b8d26ef76e53b4d389a8 100644 (file)
@@ -231,7 +231,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);
 }