Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231669
b: refs/heads/master
c: 08b3af3
h: refs/heads/master
i:
  231667: 1693e56
v: v3
  • Loading branch information
Kyungmin Park authored and David Woodhouse committed Dec 3, 2010
1 parent da35481 commit b9ce933
Show file tree
Hide file tree
Showing 2 changed files with 6 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: daf05ec00c6e60a2c705820e7f93cbd31c804fe3
refs/heads/master: 08b3af3092bb2c284796e4e823c5309c2d0a9bca
7 changes: 5 additions & 2 deletions trunk/drivers/mtd/onenand/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ static int s5pc110_read_bufferram(struct mtd_info *mtd, int area,
void __iomem *p;
void *buf = (void *) buffer;
dma_addr_t dma_src, dma_dst;
int err, page_dma = 0;
int err, ofs, page_dma = 0;
struct device *dev = &onenand->pdev->dev;

p = this->base + area;
Expand All @@ -677,10 +677,13 @@ static int s5pc110_read_bufferram(struct mtd_info *mtd, int area,
if (!page)
goto normal;

/* Page offset */
ofs = ((size_t) buf & ~PAGE_MASK);
page_dma = 1;

/* DMA routine */
dma_src = onenand->phys_base + (p - this->base);
dma_dst = dma_map_page(dev, page, 0, count, DMA_FROM_DEVICE);
dma_dst = dma_map_page(dev, page, ofs, count, DMA_FROM_DEVICE);
} else {
/* DMA routine */
dma_src = onenand->phys_base + (p - this->base);
Expand Down

0 comments on commit b9ce933

Please sign in to comment.