Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164720
b: refs/heads/master
c: a3f406f
h: refs/heads/master
v: v3
  • Loading branch information
Jarkko Lavinen authored and Linus Torvalds committed Sep 23, 2009
1 parent 43f55a6 commit 6f2421a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: a6b2240da2b090874095832afc7eb9ed2968b27f
refs/heads/master: a3f406f861456987c9fce8cfa0a00d07b16cdec0
14 changes: 12 additions & 2 deletions trunk/drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ mmc_omap_start_dma_transfer(struct mmc_omap_host *host, struct mmc_request *req)
struct mmc_data *data = req->data;

/* Sanity check: all the SG entries must be aligned by block size. */
for (i = 0; i < host->dma_len; i++) {
for (i = 0; i < data->sg_len; i++) {
struct scatterlist *sgl;

sgl = data->sg + i;
Expand Down Expand Up @@ -1021,10 +1021,20 @@ static int omap_mmc_disable(struct mmc_host *mmc, int lazy)
static void omap_mmc_request(struct mmc_host *mmc, struct mmc_request *req)
{
struct mmc_omap_host *host = mmc_priv(mmc);
int err;

WARN_ON(host->mrq != NULL);
host->mrq = req;
mmc_omap_prepare_data(host, req);
err = mmc_omap_prepare_data(host, req);
if (err) {
req->cmd->error = err;
if (req->data)
req->data->error = err;
host->mrq = NULL;
mmc_request_done(mmc, req);
return;
}

mmc_omap_start_command(host, req->cmd, req->data);
}

Expand Down

0 comments on commit 6f2421a

Please sign in to comment.