Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f0fcd37 authored by David Lanzendörfer's avatar David Lanzendörfer Committed by Ulf Hansson
Browse files

mmc: sunxi: Correcting SDXC_HARDWARE_RESET bit



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: default avatarDavid Lanzendörfer <david.lanzendoerfer@o2s.ch>
Reported-by: default avatar <lixiang@allwinnertech.com>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent dd9b3803
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -252,7 +252,7 @@ static int sunxi_mmc_reset_host(struct sunxi_mmc_host *host)
	unsigned long expire = jiffies + msecs_to_jiffies(250);
	unsigned long expire = jiffies + msecs_to_jiffies(250);
	u32 rval;
	u32 rval;


	mmc_writel(host, REG_CMDR, SDXC_HARDWARE_RESET);
	mmc_writel(host, REG_GCTRL, SDXC_HARDWARE_RESET);
	do {
	do {
		rval = mmc_readl(host, REG_GCTRL);
		rval = mmc_readl(host, REG_GCTRL);
	} while (time_before(jiffies, expire) && (rval & SDXC_HARDWARE_RESET));
	} while (time_before(jiffies, expire) && (rval & SDXC_HARDWARE_RESET));