Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156153
b: refs/heads/master
c: da60a91
h: refs/heads/master
i:
  156151: 26e755b
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Pierre Ossman committed Jul 31, 2009
1 parent 30743f6 commit 36db612
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 6de7e356faf54aa75de5b624bbce28a5b776dfa8
refs/heads/master: da60a91d012bcb10bc5bcd86d585c4281742832c
10 changes: 8 additions & 2 deletions trunk/drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,14 @@ static void sdhci_prepare_data(struct sdhci_host *host, struct mmc_data *data)
}

if (!(host->flags & SDHCI_REQ_USE_DMA)) {
sg_miter_start(&host->sg_miter,
data->sg, data->sg_len, SG_MITER_ATOMIC);
int flags;

flags = SG_MITER_ATOMIC;
if (host->data->flags & MMC_DATA_READ)
flags |= SG_MITER_TO_SG;
else
flags |= SG_MITER_FROM_SG;
sg_miter_start(&host->sg_miter, data->sg, data->sg_len, flags);
host->blocks = data->blocks;
}

Expand Down

0 comments on commit 36db612

Please sign in to comment.