Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332831
b: refs/heads/master
c: b4967aa
h: refs/heads/master
i:
  332829: 43097c7
  332827: b8837e0
  332823: 1571fda
  332815: e3e63f3
  332799: 839ad0a
v: v3
  • Loading branch information
Thomas Abraham authored and Chris Ball committed Oct 3, 2012
1 parent 482c5e4 commit f473a05
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: f90a0612f0e110a8af976835273124dff4fa8b3d
refs/heads/master: b4967aa58e2bbafbb280dd4f0c5a777181500e41
4 changes: 3 additions & 1 deletion trunk/drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,9 @@ static int dw_mci_get_ro(struct mmc_host *mmc)
struct dw_mci_board *brd = slot->host->pdata;

/* Use platform get_ro function, else try on board write protect */
if (brd->get_ro)
if (brd->quirks & DW_MCI_QUIRK_NO_WRITE_PROTECT)
read_only = 0;
else if (brd->get_ro)
read_only = brd->get_ro(slot->id);
else
read_only =
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/mmc/dw_mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ struct dw_mci_dma_ops {
#define DW_MCI_QUIRK_HIGHSPEED BIT(2)
/* Unreliable card detection */
#define DW_MCI_QUIRK_BROKEN_CARD_DETECTION BIT(3)

/* Write Protect detection not available */
#define DW_MCI_QUIRK_NO_WRITE_PROTECT BIT(4)

struct dma_pdata;

Expand Down

0 comments on commit f473a05

Please sign in to comment.