linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset()
@ 2010-09-24 21:45 Loïc Minier
  2010-09-25  6:26 ` Ghorai, Sukumar
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Loïc Minier @ 2010-09-24 21:45 UTC (permalink / raw)
  To: linux-mtd, linux-omap; +Cc: Tony Lindgren, Loïc Minier, Sukumar Ghorai

Fix missing cs arg to gpmc_prefetch_reset() when
CONFIG_MTD_NAND_OMAP_PREFETCH_DMA=y which caused a build failure since
948d38e799f0ab87cf8ed9113fcdaaee61acf321:
drivers/mtd/nand/omap2.c: In function 'omap_nand_dma_transfer':
drivers/mtd/nand/omap2.c:416: error: too few arguments to function 'gpmc_prefetch_reset'

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
---
 drivers/mtd/nand/omap2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 133d515..513e0a7 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -413,7 +413,7 @@ static inline int omap_nand_dma_transfer(struct mtd_info *mtd, void *addr,
 		prefetch_status = gpmc_read_status(GPMC_PREFETCH_COUNT);
 	} while (prefetch_status);
 	/* disable and stop the PFPW engine */
-	gpmc_prefetch_reset();
+	gpmc_prefetch_reset(info->gpmc_cs);
 
 	dma_unmap_single(&info->pdev->dev, dma_addr, len, dir);
 	return 0;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* RE: [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset()
  2010-09-24 21:45 [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset() Loïc Minier
@ 2010-09-25  6:26 ` Ghorai, Sukumar
  2010-09-26 12:18 ` Artem Bityutskiy
  2010-10-04  7:39 ` Artem Bityutskiy
  2 siblings, 0 replies; 6+ messages in thread
From: Ghorai, Sukumar @ 2010-09-25  6:26 UTC (permalink / raw)
  To: Loïc Minier, linux-mtd@lists.infradead.org,
	linux-omap@vger.kernel.org
  Cc: Tony Lindgren



> -----Original Message-----
> From: Loïc Minier [mailto:loic.minier@linaro.org]
> Sent: Saturday, September 25, 2010 3:15 AM
> To: linux-mtd@lists.infradead.org; linux-omap@vger.kernel.org
> Cc: Tony Lindgren; Ghorai, Sukumar; Loïc Minier
> Subject: [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset()
> 
> Fix missing cs arg to gpmc_prefetch_reset() when
> CONFIG_MTD_NAND_OMAP_PREFETCH_DMA=y which caused a build failure since
> 948d38e799f0ab87cf8ed9113fcdaaee61acf321:
> drivers/mtd/nand/omap2.c: In function 'omap_nand_dma_transfer':
> drivers/mtd/nand/omap2.c:416: error: too few arguments to function
> 'gpmc_prefetch_reset'
> 
> Signed-off-by: Loïc Minier <loic.minier@linaro.org>
> ---
>  drivers/mtd/nand/omap2.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
> index 133d515..513e0a7 100644
> --- a/drivers/mtd/nand/omap2.c
> +++ b/drivers/mtd/nand/omap2.c
> @@ -413,7 +413,7 @@ static inline int omap_nand_dma_transfer(struct
> mtd_info *mtd, void *addr,
>  		prefetch_status = gpmc_read_status(GPMC_PREFETCH_COUNT);
>  	} while (prefetch_status);
>  	/* disable and stop the PFPW engine */
> -	gpmc_prefetch_reset();
> +	gpmc_prefetch_reset(info->gpmc_cs);
> 
>  	dma_unmap_single(&info->pdev->dev, dma_addr, len, dir);
>  	return 0;
> --
> 1.7.1
[Ghorai] Acked-by: Sukumar Ghorai <s-ghorai@ti.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset()
  2010-09-24 21:45 [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset() Loïc Minier
  2010-09-25  6:26 ` Ghorai, Sukumar
@ 2010-09-26 12:18 ` Artem Bityutskiy
  2010-10-04  7:39 ` Artem Bityutskiy
  2 siblings, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2010-09-26 12:18 UTC (permalink / raw)
  To: Loïc Minier; +Cc: Tony Lindgren, linux-omap, linux-mtd, Sukumar Ghorai

On Fri, 2010-09-24 at 23:45 +0200, Loïc Minier wrote:
> Fix missing cs arg to gpmc_prefetch_reset() when
> CONFIG_MTD_NAND_OMAP_PREFETCH_DMA=y which caused a build failure since
> 948d38e799f0ab87cf8ed9113fcdaaee61acf321:
> drivers/mtd/nand/omap2.c: In function 'omap_nand_dma_transfer':
> drivers/mtd/nand/omap2.c:416: error: too few arguments to function 'gpmc_prefetch_reset'
> 
> Signed-off-by: Loïc Minier <loic.minier@linaro.org>

Looks like a regression which should be merged to 2.6.36.
I've taken this patch to l2-mtd-2.6.git, will ping dwmw2 about the need
to merge this to 2.6.36.

-- 
Best Regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset()
  2010-09-24 21:45 [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset() Loïc Minier
  2010-09-25  6:26 ` Ghorai, Sukumar
  2010-09-26 12:18 ` Artem Bityutskiy
@ 2010-10-04  7:39 ` Artem Bityutskiy
  2010-10-04  8:52   ` Loïc Minier
  2 siblings, 1 reply; 6+ messages in thread
From: Artem Bityutskiy @ 2010-10-04  7:39 UTC (permalink / raw)
  To: Loïc Minier; +Cc: Tony Lindgren, linux-omap, linux-mtd, Sukumar Ghorai

On Fri, 2010-09-24 at 23:45 +0200, Loïc Minier wrote:
> Fix missing cs arg to gpmc_prefetch_reset() when
> CONFIG_MTD_NAND_OMAP_PREFETCH_DMA=y which caused a build failure since
> 948d38e799f0ab87cf8ed9113fcdaaee61acf321:
> drivers/mtd/nand/omap2.c: In function 'omap_nand_dma_transfer':
> drivers/mtd/nand/omap2.c:416: error: too few arguments to function 'gpmc_prefetch_reset'
> 
> Signed-off-by: Loïc Minier <loic.minier@linaro.org>
> ---
>  drivers/mtd/nand/omap2.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

FYI, a similar patch is already in Linus' tree, so I'm dropping it from
my tree:

commit f12f662f29d5801e598c6bb4a71e54b2de218f72
Author: Daniel J Blueman <daniel.blueman@gmail.com>
Date:   Wed Sep 29 21:01:55 2010 +0100

    fix OMAP2 MTD build failure
    
    Fix build failure from recent interface change and merge.
    
    Tested on OMAP3430.
    
    Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset()
  2010-10-04  7:39 ` Artem Bityutskiy
@ 2010-10-04  8:52   ` Loïc Minier
  2010-10-04  8:57     ` Artem Bityutskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Loïc Minier @ 2010-10-04  8:52 UTC (permalink / raw)
  To: Artem Bityutskiy; +Cc: Tony Lindgren, linux-omap, linux-mtd, Sukumar Ghorai

On Mon, Oct 04, 2010, Artem Bityutskiy wrote:
> FYI, a similar patch is already in Linus' tree, so I'm dropping it from
> my tree

 Ok, thanks; is there something I should have done to get this patch
 into Linus tree?

-- 
Loïc Minier

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset()
  2010-10-04  8:52   ` Loïc Minier
@ 2010-10-04  8:57     ` Artem Bityutskiy
  0 siblings, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2010-10-04  8:57 UTC (permalink / raw)
  To: Loïc Minier; +Cc: Tony Lindgren, linux-omap, linux-mtd, Sukumar Ghorai

On Mon, 2010-10-04 at 10:52 +0200, Loïc Minier wrote:
> On Mon, Oct 04, 2010, Artem Bityutskiy wrote:
> > FYI, a similar patch is already in Linus' tree, so I'm dropping it from
> > my tree
> 
>  Ok, thanks; is there something I should have done to get this patch
>  into Linus tree?

No, you did everything right. I guess that guy was just faster than you.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-04  9:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-24 21:45 [PATCH] nand: omap2: Missing arg to gpmc_prefetch_reset() Loïc Minier
2010-09-25  6:26 ` Ghorai, Sukumar
2010-09-26 12:18 ` Artem Bityutskiy
2010-10-04  7:39 ` Artem Bityutskiy
2010-10-04  8:52   ` Loïc Minier
2010-10-04  8:57     ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).