LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] mmc: au1xmmc: implement proper ro switch detection
@ 2007-01-25  9:29 Manuel Lauss
  2007-01-27 13:01 ` Pierre Ossman
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Lauss @ 2007-01-25  9:29 UTC (permalink / raw)
  To: drzeus-mmc; +Cc: linux-kernel


au1xmmc: implement proper R/O switch detection.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>

--- a/drivers/mmc/au1xmmc.c.orig	2007-01-25 09:56:10.851983000 +0100
+++ b/drivers/mmc/au1xmmc.c	2007-01-25 10:13:12.121983000 +0100
@@ -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;
 }
@@ -878,6 +885,7 @@ static void au1xmmc_init_dma(struct au1x
 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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mmc: au1xmmc: implement proper ro switch detection
  2007-01-25  9:29 [PATCH] mmc: au1xmmc: implement proper ro switch detection Manuel Lauss
@ 2007-01-27 13:01 ` Pierre Ossman
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre Ossman @ 2007-01-27 13:01 UTC (permalink / raw)
  To: Manuel Lauss; +Cc: linux-kernel

Manuel Lauss wrote:
> au1xmmc: implement proper R/O switch detection.
> 
> Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
> 

Also applied.

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-27 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-25  9:29 [PATCH] mmc: au1xmmc: implement proper ro switch detection Manuel Lauss
2007-01-27 13:01 ` Pierre Ossman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).