projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dec1bd
)
i.MX28: Check if WP detection is implemented at all
author
Marek Vasut
<
[email protected]
>
Tue, 1 May 2012 11:09:52 +0000
(11:09 +0000)
committer
Albert ARIBAUD
<
[email protected]
>
Tue, 15 May 2012 06:31:36 +0000
(08:31 +0200)
If the WP function is NULL, simply assume the card is always RW.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
Cc: Wolfgang Denk <
[email protected]
>
Cc: Detlev Zundel <
[email protected]
>
Cc: Fabio Estevam <
[email protected]
>
Acked-by: Stefano Babic <
[email protected]
>
drivers/mmc/mxsmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mxsmmc.c
b/drivers/mmc/mxsmmc.c
index 35c6bdabb06d4b71e8cf46263aa22c2cbf0301ec..c7200ee71aeb2e0e622c5993bf5185f52658250a 100644
(file)
--- a/
drivers/mmc/mxsmmc.c
+++ b/
drivers/mmc/mxsmmc.c
@@
-133,7
+133,8
@@
mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
/* READ or WRITE */
if (data->flags & MMC_DATA_READ) {
ctrl0 |= SSP_CTRL0_READ;
- } else if (priv->mmc_is_wp(mmc->block_dev.dev)) {
+ } else if (priv->mmc_is_wp &&
+ priv->mmc_is_wp(mmc->block_dev.dev)) {
printf("MMC%d: Can not write a locked card!\n",
mmc->block_dev.dev);
return UNUSABLE_ERR;