Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186291
b: refs/heads/master
c: 0b3520f
h: refs/heads/master
i:
  186289: 499e98b
  186287: e412dca
v: v3
  • Loading branch information
Wolfgang Muees authored and Linus Torvalds committed Mar 6, 2010
1 parent 5ae8435 commit 38ba1f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: dc2ed552804f3a2ae41c0ffe4bc09879ec8f7396
refs/heads/master: 0b3520f2df8e4e5dad6a7b2743d037bf06c22024
8 changes: 5 additions & 3 deletions trunk/drivers/mmc/host/at91_mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,13 @@ static inline void at91_mci_sg_to_dma(struct at91mci_host *host, struct mmc_data
for (index = 0; index < (amount / 4); index++)
*dmabuf++ = swab32(sgbuffer[index]);
} else {
memcpy(dmabuf, sgbuffer, amount);
dmabuf += amount;
char *tmpv = (char *)dmabuf;
memcpy(tmpv, sgbuffer, amount);
tmpv += amount;
dmabuf = (unsigned *)tmpv;
}

kunmap_atomic(sgbuffer, KM_BIO_SRC_IRQ);
kunmap_atomic(((void *)sgbuffer) - sg->offset, KM_BIO_SRC_IRQ);

if (size == 0)
break;
Expand Down

0 comments on commit 38ba1f6

Please sign in to comment.