Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102181
b: refs/heads/master
c: 88b8d9a
h: refs/heads/master
i:
  102179: d64f299
v: v3
  • Loading branch information
Manuel Lauss authored and Pierre Ossman committed Jul 15, 2008
1 parent 79b6221 commit f217e50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c0a889df56c9f6c5a68ec7aa222082569b35fd9
refs/heads/master: 88b8d9a83431237bf3eec1f2968f763607811171
7 changes: 7 additions & 0 deletions trunk/drivers/mmc/host/au1xmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f217e50

Please sign in to comment.