projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c0a889
)
au1xmmc: abort requests early if no card is present.
author
Manuel Lauss
<mano@roarinelk.homelinux.net>
Mon, 9 Jun 2008 06:39:11 +0000
(08:39 +0200)
committer
Pierre Ossman
<drzeus@drzeus.cx>
Tue, 15 Jul 2008 12:14:43 +0000
(14:14 +0200)
Don't process an MMC request if no card is present.
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/au1xmmc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/au1xmmc.c
b/drivers/mmc/host/au1xmmc.c
index fcbaf40e35535f41bf873f60a4e420c210df7fbb..718eb879587f5b8a7c675aab4e097edfd0d8cbb3 100644
(file)
--- a/
drivers/mmc/host/au1xmmc.c
+++ b/
drivers/mmc/host/au1xmmc.c
@@
-697,6
+697,13
@@
static void au1xmmc_request(struct mmc_host* mmc, struct mmc_request* mrq)
host->mrq = mrq;
host->status = HOST_S_CMD;
+ /* fail request immediately if no card is present */
+ if (0 == au1xmmc_card_inserted(host)) {
+ mrq->cmd->error = -ENOMEDIUM;
+ au1xmmc_finish_request(host);
+ return;
+ }
+
if (mrq->data) {
FLUSH_FIFO(host);
ret = au1xmmc_prepare_data(host, mrq->data);