Skip to content

Commit

Permalink
mmc: sdhci-of-esdhc: avoid writing power control register
Browse files Browse the repository at this point in the history
The eSDHC doesn't have a standard power control register, so when
writing this register in stack we should do nothing to avoid
incorrect operation.

Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
yangbo lu authored and Ulf Hansson committed Oct 26, 2015
1 parent a599579 commit 9e4703d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/mmc/host/sdhci-of-esdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ static u32 esdhc_writeb_fixup(struct sdhci_host *host,
u8 tmp;
int shift = (spec_reg & 0x3) * 8;

/*
* eSDHC doesn't have a standard power control register, so we do
* nothing here to avoid incorrect operation.
*/
if (spec_reg == SDHCI_POWER_CONTROL)
return old_value;
/*
* "DMA select" location is offset 0x28 in SD specification, but on
* P5020 or P3041, it's located at 0x29.
Expand Down

0 comments on commit 9e4703d

Please sign in to comment.