summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Reimer <mreimer@sdgsystems.com>2015-02-23 21:56:58 (GMT)
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2015-03-18 07:53:01 (GMT)
commite113fe3c06e34c9d29bd8952955558d585e4f80c (patch)
treefff4a38cd501f20d67e36f58d7a96817ca2ab554
parent8ebde4f0b3e513a41b388893a66ade4a6c292465 (diff)
downloadu-boot-e113fe3c06e34c9d29bd8952955558d585e4f80c.tar.xz
mmc: sdhci: don't clobber adjacent registers
SDHCI_HOST_CONTROL is a byte-sized register, so don't write to it as if it were a long, as that would result in clobbering the three registers following. Signed-off-by: Matt Reimer <mreimer@sdgsystems.com>
-rw-r--r--drivers/mmc/sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 82d7984..1f8917b 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -412,7 +412,7 @@ static int sdhci_init(struct mmc *mmc)
if (host->quirks & SDHCI_QUIRK_NO_CD) {
unsigned int status;
- sdhci_writel(host, SDHCI_CTRL_CD_TEST_INS | SDHCI_CTRL_CD_TEST,
+ sdhci_writeb(host, SDHCI_CTRL_CD_TEST_INS | SDHCI_CTRL_CD_TEST,
SDHCI_HOST_CONTROL);
status = sdhci_readl(host, SDHCI_PRESENT_STATE);