login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
5
Re: [PATCH 8/9] au1xmmc: abort requests early if no card is present
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pierre Ossman
Subject:
Re: [PATCH 8/9] au1xmmc: abort requests early if no card is present
Date: Thursday, June 5, 2008 - 2:05 pm
On Mon, 19 May 2008 10:08:04 +0200 Manuel Lauss <mano@roarinelk.homelinux.net> wrote:
quoted text
> From ec41439903048bf98e301dbd03426c63156ebc0e Mon Sep 17 00:00:00 2001 > From: Manuel Lauss <mlau@msc-ge.com> > Date: Sun, 18 May 2008 15:52:43 +0200 > Subject: [PATCH] au1xmmc: abort requests early if no card is present >=20 > Don't process a request if no card is present. >=20 > Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net> > --- > drivers/mmc/host/au1xmmc.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) >=20 > diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c > index be09a14..0b30582 100644 > --- a/drivers/mmc/host/au1xmmc.c > +++ b/drivers/mmc/host/au1xmmc.c > @@ -689,6 +689,13 @@ static void au1xmmc_request(struct mmc_host *mmc, st=
ruct mmc_request *mrq)
quoted text
> host->mrq =3D mrq; > host->status =3D HOST_S_CMD; > =20 > + /* fail request immediately if no card is present */ > + if (0 =3D=3D au1xmmc_card_inserted(host)) { > + mrq->cmd->error =3D -ETIMEDOUT; > + au1xmmc_finish_request(host); > + return; > + } > + > if (mrq->data) { > FLUSH_FIFO(host); > ret =3D au1xmmc_prepare_data(host, mrq->data);
You should use -ENOMEDIUM for this case. Rgds Pierre
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/9] au1xmmc updates #3
, Manuel Lauss
, (Mon May 19, 1:03 am)
[PATCH 1/9] Alchemy: export get_au1x00_speed for modules
, Manuel Lauss
, (Mon May 19, 1:04 am)
[PATCH 2/9] Alchemy: dbdma: add API to delete custom DDMA ...
, Manuel Lauss
, (Mon May 19, 1:04 am)
[PATCH 3/9] au1xmmc: remove pb1200 board-specific code fro ...
, Manuel Lauss
, (Mon May 19, 1:05 am)
[PATCH 4/9] Alchemy: register mmc platform device for db12 ...
, Manuel Lauss
, (Mon May 19, 1:06 am)
[PATCH 5/9] au1xmmc: enable 4 bit transfer mode
, Manuel Lauss
, (Mon May 19, 1:06 am)
[PATCH 6/9] au1xmmc: SDIO IRQ support
, Manuel Lauss
, (Mon May 19, 1:06 am)
[PATCH 7/9] au1xmmc: codingstyle tidying
, Manuel Lauss
, (Mon May 19, 1:07 am)
[PATCH 8/9] au1xmmc: abort requests early if no card is pr ...
, Manuel Lauss
, (Mon May 19, 1:08 am)
[PATCH 9/9] au1xmmc: Add back PB1200/DB1200 MMC activity L ...
, Manuel Lauss
, (Mon May 19, 1:08 am)
Re: [PATCH 3/9] au1xmmc: remove pb1200 board-specific code ...
, Manuel Lauss
, (Mon May 19, 1:17 am)
Re: [PATCH 1/9] Alchemy: export get_au1x00_speed for modules
, Sergei Shtylyov
, (Mon May 19, 2:35 am)
Re: [PATCH 1/9] Alchemy: export get_au1x00_speed for modules
, Manuel Lauss
, (Mon May 19, 2:49 am)
Re: [PATCH 3/9] au1xmmc: remove pb1200 board-specific code ...
, Manuel Lauss
, (Mon May 19, 3:07 am)
Re: [PATCH 9/9] au1xmmc: Add back PB1200/DB1200 MMC activi ...
, Sergei Shtylyov
, (Mon May 19, 6:27 am)
Re: [PATCH 4/9] Alchemy: register mmc platform device for ...
, Sergei Shtylyov
, (Wed May 21, 5:32 am)
Re: [PATCH 4/9] Alchemy: register mmc platform device for ...
, Manuel Lauss
, (Wed May 21, 6:10 am)
Re: [PATCH 1/9] Alchemy: export get_au1x00_speed for modules
, Pierre Ossman
, (Thu Jun 5, 2:03 pm)
Re: [PATCH 8/9] au1xmmc: abort requests early if no card i ...
, Pierre Ossman
, (Thu Jun 5, 2:05 pm)
Re: [PATCH 9/9] au1xmmc: Add back PB1200/DB1200 MMC activi ...
, Pierre Ossman
, (Thu Jun 5, 2:08 pm)
Re: [PATCH 0/9] au1xmmc updates #3
, Pierre Ossman
, (Thu Jun 5, 2:09 pm)
Re: [PATCH 1/9] Alchemy: export get_au1x00_speed for modules
, Manuel Lauss
, (Fri Jun 6, 12:16 am)
Re: [PATCH 8/9] au1xmmc: abort requests early if no card i ...
, Manuel Lauss
, (Fri Jun 6, 12:17 am)
Re: [PATCH 0/9] au1xmmc updates #3
, Manuel Lauss
, (Fri Jun 6, 12:18 am)
Re: [PATCH 9/9] au1xmmc: Add back PB1200/DB1200 MMC activi ...
, Manuel Lauss
, (Fri Jun 6, 12:45 am)
Re: [PATCH 0/9] au1xmmc updates #3
, Pierre Ossman
, (Fri Jun 6, 3:11 am)
Re: [PATCH 1/9] Alchemy: export get_au1x00_speed for modules
, Sergei Shtylyov
, (Fri Jun 6, 4:45 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Gautham R Shenoy
[PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Alan Cox
[PATCH 01/70] tty: Ldisc revamp
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Harvey Harrison
Re: [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem
Alex Riesen
Re: git exclude patterns for directory
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Timo Teräs
ip xfrm policy semantics
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
netfilter: nf_conntrack_sip: add T.38 FAX support
Linux Kernel Mailing List
ipc/sem.c: move wake_up_process out of the spinlock section
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Tony Abernethy
Re: The Atheros story in much fewer words
Damien Miller
Re: Patching a SSH 'Weakness'
Colocation donated by:
Syndicate