Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164741
b: refs/heads/master
c: c085926
h: refs/heads/master
i:
  164739: 5b61980
v: v3
  • Loading branch information
Anton Vorontsov authored and Linus Torvalds committed Sep 23, 2009
1 parent 9a2a052 commit 5d4d9c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e5df7525d0705dfbfded0c10a7b87b0a754a35d
refs/heads/master: c08592698534f390afe726c38301aa8f1620c361
6 changes: 6 additions & 0 deletions trunk/drivers/mmc/host/sdhci-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ struct sdhci_of_host {
#define ESDHC_CLOCK_HCKEN 0x00000002
#define ESDHC_CLOCK_IPGEN 0x00000001

#define ESDHC_HOST_CONTROL_RES 0x05

static u32 esdhc_readl(struct sdhci_host *host, int reg)
{
return in_be32(host->ioaddr + reg);
Expand Down Expand Up @@ -109,6 +111,10 @@ static void esdhc_writeb(struct sdhci_host *host, u8 val, int reg)
int base = reg & ~0x3;
int shift = (reg & 0x3) * 8;

/* Prevent SDHCI core from writing reserved bits (e.g. HISPD). */
if (reg == SDHCI_HOST_CONTROL)
val &= ~ESDHC_HOST_CONTROL_RES;

clrsetbits_be32(host->ioaddr + base , 0xff << shift, val << shift);
}

Expand Down

0 comments on commit 5d4d9c9

Please sign in to comment.