Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53581
b: refs/heads/master
c: b2670b1
h: refs/heads/master
i:
  53579: 6fd6efb
v: v3
  • Loading branch information
Pierre Ossman committed May 1, 2007
1 parent 8bfe913 commit df92bbe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da7fbe58d2d347e95af699ddf04d885be6362bbe
refs/heads/master: b2670b1c6ddd54be4a0f72f853122510ea5ef285
41 changes: 20 additions & 21 deletions trunk/drivers/mmc/host/wbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,24 +788,7 @@ static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq)
goto done;
}

/*
* Does the request include data?
*/
if (cmd->data) {
wbsd_prepare_data(host, cmd->data);

if (cmd->data->error != MMC_ERR_NONE)
goto done;
}

wbsd_send_command(host, cmd);

/*
* If this is a data transfer the request
* will be finished after the data has
* transfered.
*/
if (cmd->data && (cmd->error == MMC_ERR_NONE)) {
/*
* The hardware is so delightfully stupid that it has a list
* of "data" commands. If a command isn't on this list, it'll
Expand Down Expand Up @@ -837,14 +820,30 @@ static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq)
"supported by this controller.\n",
mmc_hostname(host->mmc), cmd->opcode);
#endif
cmd->data->error = MMC_ERR_INVALID;

if (cmd->data->stop)
wbsd_send_command(host, cmd->data->stop);
cmd->error = MMC_ERR_INVALID;

goto done;
};
}

/*
* Does the request include data?
*/
if (cmd->data) {
wbsd_prepare_data(host, cmd->data);

if (cmd->data->error != MMC_ERR_NONE)
goto done;
}

wbsd_send_command(host, cmd);

/*
* If this is a data transfer the request
* will be finished after the data has
* transfered.
*/
if (cmd->data && (cmd->error == MMC_ERR_NONE)) {
/*
* Dirty fix for hardware bug.
*/
Expand Down

0 comments on commit df92bbe

Please sign in to comment.