mmc: sunxi: Correcting SDXC_HARDWARE_RESET bit
authorDavid Lanzendörfer <david.lanzendoerfer@o2s.ch>
Tue, 16 Dec 2014 14:11:10 +0000 (15:11 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:09 +0000 (09:56 +0100)
Fixing the register name in sunxi_mmc_reset_host since the
SDXC_HARDWARE_RESET bit is actually located within REG_GCTRL and not
REG_CMDR as it was pointed out by Allwinner.

Signed-off-by: David Lanzendörfer <david.lanzendoerfer@o2s.ch>
Reported-by: <lixiang@allwinnertech.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c

index 67e680c128c5fcb0c36568862ed0be057531522f..695fe85e27426935b1640e63cdb2bc415149ca0a 100644 (file)
@@ -252,7 +252,7 @@ static int sunxi_mmc_reset_host(struct sunxi_mmc_host *host)
        unsigned long expire = jiffies + msecs_to_jiffies(250);
        u32 rval;
 
-       mmc_writel(host, REG_CMDR, SDXC_HARDWARE_RESET);
+       mmc_writel(host, REG_GCTRL, SDXC_HARDWARE_RESET);
        do {
                rval = mmc_readl(host, REG_GCTRL);
        } while (time_before(jiffies, expire) && (rval & SDXC_HARDWARE_RESET));