Merge "mmc: sdhci: Use right API to read/write host control2 register"
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index fffce5c..32ff175 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -71,7 +71,7 @@
static inline int sdhci_get_async_int_status(struct sdhci_host *host)
{
- return (sdhci_readl(host, SDHCI_HOST_CONTROL2) &
+ return (sdhci_readw(host, SDHCI_HOST_CONTROL2) &
SDHCI_CTRL_ASYNC_INT_ENABLE) >> 14;
}
@@ -1592,12 +1592,12 @@
return;
if (enable)
- sdhci_writel(host,
- sdhci_readl(host, SDHCI_HOST_CONTROL2) |
+ sdhci_writew(host,
+ sdhci_readw(host, SDHCI_HOST_CONTROL2) |
SDHCI_CTRL_ASYNC_INT_ENABLE,
SDHCI_HOST_CONTROL2);
else
- sdhci_writel(host, sdhci_readl(host, SDHCI_HOST_CONTROL2) &
+ sdhci_writew(host, sdhci_readw(host, SDHCI_HOST_CONTROL2) &
~SDHCI_CTRL_ASYNC_INT_ENABLE,
SDHCI_HOST_CONTROL2);
}