Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145526
b: refs/heads/master
c: fbf6a5f
h: refs/heads/master
v: v3
  • Loading branch information
Dave Liu authored and Pierre Ossman committed Jun 3, 2009
1 parent b7e4837 commit a1f99f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6d297f008e124d0bb4312369191b012c10a1a4e
refs/heads/master: fbf6a5fcbcc2248f1e676f7a0a7d49cd4b535d2a
8 changes: 7 additions & 1 deletion trunk/drivers/mmc/host/sdhci-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ static u32 esdhc_readl(struct sdhci_host *host, int reg)

static u16 esdhc_readw(struct sdhci_host *host, int reg)
{
return in_be16(host->ioaddr + (reg ^ 0x2));
u16 ret;

if (unlikely(reg == SDHCI_HOST_VERSION))
ret = in_be16(host->ioaddr + reg);
else
ret = in_be16(host->ioaddr + (reg ^ 0x2));
return ret;
}

static u8 esdhc_readb(struct sdhci_host *host, int reg)
Expand Down

0 comments on commit a1f99f1

Please sign in to comment.