Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332663
b: refs/heads/master
c: 314a156
h: refs/heads/master
i:
  332661: a4e0f04
  332659: 945d6e2
  332655: c3af622
v: v3
  • Loading branch information
Roland Stigge authored and David Woodhouse committed Jul 13, 2012
1 parent 13c12fc commit 6a3d400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 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: 2c99b8bfb22342ab0c06e07ee54fa0d5e638e52a
refs/heads/master: 314a15664e028e6bcafc03495cc492645d9df4df
13 changes: 1 addition & 12 deletions trunk/drivers/mtd/nand/lpc32xx_slc.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,25 +714,14 @@ static int lpc32xx_nand_write_page_raw_syndrome(struct mtd_info *mtd,
return 0;
}

static bool lpc32xx_dma_filter(struct dma_chan *chan, void *param)
{
struct pl08x_dma_chan *ch =
container_of(chan, struct pl08x_dma_chan, chan);

/* In LPC32xx's PL080 DMA wiring, the SLC NAND DMA signal is #1 */
if (ch->cd->min_signal == 1)
return true;
return false;
}

static int lpc32xx_nand_dma_setup(struct lpc32xx_nand_host *host)
{
struct mtd_info *mtd = &host->mtd;
dma_cap_mask_t mask;

dma_cap_zero(mask);
dma_cap_set(DMA_SLAVE, mask);
host->dma_chan = dma_request_channel(mask, lpc32xx_dma_filter, NULL);
host->dma_chan = dma_request_channel(mask, pl08x_filter_id, "nand-slc");
if (!host->dma_chan) {
dev_err(mtd->dev.parent, "Failed to request DMA channel\n");
return -EBUSY;
Expand Down

0 comments on commit 6a3d400

Please sign in to comment.