projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9120c3
)
mmc: tmio: fix regression in TMIO_MMC_WRPROTECT_DISABLE handling
author
Guennadi Liakhovetski
<
[email protected]
>
Mon, 20 Jun 2011 14:51:10 +0000
(16:51 +0200)
committer
Chris Ball
<
[email protected]
>
Sat, 25 Jun 2011 22:52:15 +0000
(18:52 -0400)
Commit
b6147490e6aac82
("mmc: tmio: split core functionality, DMA and
MFD glue") broke handling of the TMIO_MMC_WRPROTECT_DISABLE flag by
the tmio-mmc driver. This patch restores the original behaviour.
Signed-off-by: Guennadi Liakhovetski <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/host/tmio_mmc_pio.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/tmio_mmc_pio.c
b/drivers/mmc/host/tmio_mmc_pio.c
index ad6347bb02ddd9ee20a6085185fb6ca03924d666..0b09e8239aa05d09abf3b6b376d838b2ba8d178b 100644
(file)
--- a/
drivers/mmc/host/tmio_mmc_pio.c
+++ b/
drivers/mmc/host/tmio_mmc_pio.c
@@
-824,8
+824,8
@@
static int tmio_mmc_get_ro(struct mmc_host *mmc)
struct tmio_mmc_host *host = mmc_priv(mmc);
struct tmio_mmc_data *pdata = host->pdata;
- return ((pdata->flags & TMIO_MMC_WRPROTECT_DISABLE) ||
-
!
(sd_ctrl_read32(host, CTL_STATUS) & TMIO_STAT_WRPROTECT));
+ return
!
((pdata->flags & TMIO_MMC_WRPROTECT_DISABLE) ||
+
(sd_ctrl_read32(host, CTL_STATUS) & TMIO_STAT_WRPROTECT));
}
static int tmio_mmc_get_cd(struct mmc_host *mmc)