The patch titled mmc: au1xmmc: implement proper ro switch detection has been added to the -mm tree. Its filename is mmc-au1xmmc-implement-proper-ro-switch-detection.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: mmc: au1xmmc: implement proper ro switch detection From: Manuel Lauss <mano@xxxxxxxxxxxxxxxxxxxxxxx> au1xmmc: implement proper R/O switch detection. Signed-off-by: Manuel Lauss <mano@xxxxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/mmc/au1xmmc.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/mmc/au1xmmc.c~mmc-au1xmmc-implement-proper-ro-switch-detection drivers/mmc/au1xmmc.c --- a/drivers/mmc/au1xmmc.c~mmc-au1xmmc-implement-proper-ro-switch-detection +++ a/drivers/mmc/au1xmmc.c @@ -152,8 +152,9 @@ static inline int au1xmmc_card_inserted( ? 1 : 0; } -static inline int au1xmmc_card_readonly(struct au1xmmc_host *host) +static int au1xmmc_card_readonly(struct mmc_host *mmc) { + struct au1xmmc_host *host = mmc_priv(mmc); return (bcsr->status & au1xmmc_card_table[host->id].wpstatus) ? 1 : 0; } @@ -884,6 +885,7 @@ static void au1xmmc_init_dma(struct au1x static const struct mmc_host_ops au1xmmc_ops = { .request = au1xmmc_request, .set_ios = au1xmmc_set_ios, + .get_ro = au1xmmc_card_readonly, }; static int __devinit au1xmmc_probe(struct platform_device *pdev) _ Patches currently in -mm which might be from mano@xxxxxxxxxxxxxxxxxxxxxxx are mmc-au1xmmc-return-errors-for-unknown-response-types.patch mmc-au1xmmc-implement-proper-ro-switch-detection.patch git-sh.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html