projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ebde4f
)
mmc: sdhci: don't clobber adjacent registers
author
Matt Reimer
<mreimer@sdgsystems.com>
Mon, 23 Feb 2015 21:56:58 +0000
(14:56 -0700)
committer
Pantelis Antoniou
<pantelis.antoniou@konsulko.com>
Wed, 18 Mar 2015 07:53:01 +0000
(09:53 +0200)
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>
drivers/mmc/sdhci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/sdhci.c
b/drivers/mmc/sdhci.c
index 82d7984a51633bcf6e8a3294604bf2832568ec03..1f8917b1ce1b29daec32efe1dd71468156f21aaa 100644
(file)
--- 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_write
l
(host, SDHCI_CTRL_CD_TEST_INS | SDHCI_CTRL_CD_TEST,
+ sdhci_write
b
(host, SDHCI_CTRL_CD_TEST_INS | SDHCI_CTRL_CD_TEST,
SDHCI_HOST_CONTROL);
status = sdhci_readl(host, SDHCI_PRESENT_STATE);