From: Roland Stigge <stigge@antcom.de> To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux@arm.linux.org.uk, linux-kernel@vger.kernel.org, kevin.wells@nxp.com, srinivas.bakki@nxp.com, aletes.xgr@gmail.com, dwmw2@infradead.org, artem.bityutskiy@linux.intel.com, linux-mtd@lists.infradead.org Cc: Roland Stigge <stigge@antcom.de> Subject: [PATCH 1/2] mtd: lpc32xx_slc: Adjust to pl08x DMA interface changes Date: Thu, 12 Jul 2012 14:22:56 +0200 [thread overview] Message-ID: <1342095778-13403-2-git-send-email-stigge@antcom.de> (raw) In-Reply-To: <1342095778-13403-1-git-send-email-stigge@antcom.de> This patch adjusts the LPC32xx SLC NAND driver to the new pl08x DMA interface, fixing the compile error resulting from changed pl08x structures. Signed-off-by: Roland Stigge <stigge@antcom.de> --- Applies to today's linux-next (integrated lpc32xx-next and dma branches which collide) drivers/mtd/nand/lpc32xx_slc.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/mtd/nand/lpc32xx_slc.c b/drivers/mtd/nand/lpc32xx_slc.c index 1719387..c8c1d06 100644 --- a/drivers/mtd/nand/lpc32xx_slc.c +++ b/drivers/mtd/nand/lpc32xx_slc.c @@ -714,17 +714,6 @@ 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; @@ -732,7 +721,7 @@ static int lpc32xx_nand_dma_setup(struct lpc32xx_nand_host *host) 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; -- 1.7.10.4
WARNING: multiple messages have this Message-ID (diff)
From: stigge@antcom.de (Roland Stigge) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] mtd: lpc32xx_slc: Adjust to pl08x DMA interface changes Date: Thu, 12 Jul 2012 14:22:56 +0200 [thread overview] Message-ID: <1342095778-13403-2-git-send-email-stigge@antcom.de> (raw) In-Reply-To: <1342095778-13403-1-git-send-email-stigge@antcom.de> This patch adjusts the LPC32xx SLC NAND driver to the new pl08x DMA interface, fixing the compile error resulting from changed pl08x structures. Signed-off-by: Roland Stigge <stigge@antcom.de> --- Applies to today's linux-next (integrated lpc32xx-next and dma branches which collide) drivers/mtd/nand/lpc32xx_slc.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/mtd/nand/lpc32xx_slc.c b/drivers/mtd/nand/lpc32xx_slc.c index 1719387..c8c1d06 100644 --- a/drivers/mtd/nand/lpc32xx_slc.c +++ b/drivers/mtd/nand/lpc32xx_slc.c @@ -714,17 +714,6 @@ 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; @@ -732,7 +721,7 @@ static int lpc32xx_nand_dma_setup(struct lpc32xx_nand_host *host) 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; -- 1.7.10.4
next prev parent reply other threads:[~2012-07-12 12:23 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-12 12:22 [PATCH] ARM: LPC32xx: Adjust to pl08x DMA interface changes Roland Stigge 2012-07-12 12:22 ` Roland Stigge 2012-07-12 12:22 ` Roland Stigge [this message] 2012-07-12 12:22 ` [PATCH 1/2] mtd: lpc32xx_slc: " Roland Stigge 2012-07-13 12:52 ` Alexandre Pereira da Silva 2012-07-13 12:52 ` Alexandre Pereira da Silva 2012-07-13 12:52 ` Alexandre Pereira da Silva 2012-08-15 10:37 ` Artem Bityutskiy 2012-08-15 10:37 ` Artem Bityutskiy 2012-08-15 10:37 ` Artem Bityutskiy 2012-08-16 8:46 ` Roland Stigge 2012-08-16 8:46 ` Roland Stigge 2012-08-16 8:46 ` Roland Stigge 2012-08-16 14:26 ` Roland Stigge 2012-08-16 14:26 ` Roland Stigge 2012-08-16 14:26 ` Roland Stigge 2012-07-12 12:22 ` [PATCH 2/2] mtd: lpc32xx_mlc: " Roland Stigge 2012-07-12 12:22 ` Roland Stigge 2012-07-13 12:51 ` Alexandre Pereira da Silva 2012-07-13 12:51 ` Alexandre Pereira da Silva 2012-07-13 12:51 ` Alexandre Pereira da Silva 2012-07-13 12:51 ` [PATCH] ARM: LPC32xx: " Alexandre Pereira da Silva 2012-07-13 12:51 ` Alexandre Pereira da Silva 2012-07-13 12:51 ` Alexandre Pereira da Silva
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1342095778-13403-2-git-send-email-stigge@antcom.de \ --to=stigge@antcom.de \ --cc=aletes.xgr@gmail.com \ --cc=arnd@arndb.de \ --cc=artem.bityutskiy@linux.intel.com \ --cc=dwmw2@infradead.org \ --cc=kevin.wells@nxp.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mtd@lists.infradead.org \ --cc=linux@arm.linux.org.uk \ --cc=srinivas.bakki@nxp.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.