Re: [PATCH] OMAP2 OneNAND GPIO fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 08 January 2009 13:10:37 Tony Lindgren wrote:
> * Jean Pihet <jpihet@xxxxxxxxxx> [081216 20:29]:
> > Tony,
> >
> > > Yeah, should be about to get pulled into Russell's queue, also
> > > available here:
> > >
> > > http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=s
> > >hort log;h=hsmmc-init
> > >
> > > So Jean, if you can check what still needs to be patched there, and
> > > we can queue it via omap-fixes.
> >
> > Here is the patch against the hsmmc-init branch.
> > The patch changes the include path and the request/free free omap calls
> > to the standard version.
>
> Oops, I should have used this patch instead yesterday.. We could add
> your changes as a clean-up patch later on though once the currently
> pending stuff gets into mainline. Maybe refresh and resubmit then?
Ok! When will it hit the mainline?

>
> Thanks,
>
> Tony
>
> > Regards,
> > Jean.
> >
> > From a4f548c3f51c9a349decc761dd539499902873f5 Mon Sep 17 00:00:00 2001
> > From: Jean Pihet <jpihet@xxxxxxxxxx>
> > Date: Tue, 16 Dec 2008 19:22:45 +0100
> > Subject: [PATCH] ARM: OMAP: use GPIO standard in OneNAND driver
> >
> > This patch replaces some legacy OMAP GPIO calls with the standard
> > calls.
> >
> > Tested on OMAP3 EVM board.
> >
> > Signed-off-by: Jean Pihet <jpihet@xxxxxxxxxx>
> > ---
> >  drivers/mtd/onenand/omap2.c |    9 +++++----
> >  1 files changed, 5 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
> > index d1e0b8e..f223303 100644
> > --- a/drivers/mtd/onenand/omap2.c
> > +++ b/drivers/mtd/onenand/omap2.c
> > @@ -34,11 +34,11 @@
> >  #include <linux/delay.h>
> >  #include <linux/dma-mapping.h>
> >  #include <linux/io.h>
> > +#include <linux/gpio.h>
> >
> >  #include <asm/mach/flash.h>
> >  #include <mach/gpmc.h>
> >  #include <mach/onenand.h>
> > -#include <mach/gpio.h>
> >  #include <mach/pm.h>
> >
> >  #include <mach/dma.h>
> > @@ -629,7 +629,8 @@ static int __devinit omap2_onenand_probe(struct
> > platform_device *pdev)
> >  	}
> >
> >  	if (c->gpio_irq) {
> > -		if ((r = omap_request_gpio(c->gpio_irq)) < 0) {
> > +		r = gpio_request(c->gpio_irq, "OneNAND Irq");
> > +		if (r < 0) {
> >  			dev_err(&pdev->dev,  "Failed to request GPIO%d for "
> >  				"OneNAND\n", c->gpio_irq);
> >  			goto err_iounmap;
> > @@ -726,7 +727,7 @@ err_release_dma:
> >  		free_irq(gpio_to_irq(c->gpio_irq), c);
> >  err_release_gpio:
> >  	if (c->gpio_irq)
> > -		omap_free_gpio(c->gpio_irq);
> > +		gpio_free(c->gpio_irq);
> >  err_iounmap:
> >  	iounmap(c->onenand.base);
> >  err_release_mem_region:
> > @@ -761,7 +762,7 @@ static int __devexit omap2_onenand_remove(struct
> > platform_device *pdev)
> >  	platform_set_drvdata(pdev, NULL);
> >  	if (c->gpio_irq) {
> >  		free_irq(gpio_to_irq(c->gpio_irq), c);
> > -		omap_free_gpio(c->gpio_irq);
> > +		gpio_free(c->gpio_irq);
> >  	}
> >  	iounmap(c->onenand.base);
> >  	release_mem_region(c->phys_base, ONENAND_IO_SIZE);
> > --
> > 1.5.4.4.21.gc4a6c
> >
> > From a4f548c3f51c9a349decc761dd539499902873f5 Mon Sep 17 00:00:00 2001
> > From: Jean Pihet <jpihet@xxxxxxxxxx>
> > Date: Tue, 16 Dec 2008 19:22:45 +0100
> > Subject: [PATCH] ARM: OMAP: use GPIO standard in OneNAND driver
> >
> > This patch replaces some legacy OMAP GPIO calls with the standard
> > calls.
> >
> > Tested on OMAP3 EVM board.
> >
> > Signed-off-by: Jean Pihet <jpihet@xxxxxxxxxx>
> > ---
> >  drivers/mtd/onenand/omap2.c |    9 +++++----
> >  1 files changed, 5 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
> > index d1e0b8e..f223303 100644
> > --- a/drivers/mtd/onenand/omap2.c
> > +++ b/drivers/mtd/onenand/omap2.c
> > @@ -34,11 +34,11 @@
> >  #include <linux/delay.h>
> >  #include <linux/dma-mapping.h>
> >  #include <linux/io.h>
> > +#include <linux/gpio.h>
> >
> >  #include <asm/mach/flash.h>
> >  #include <mach/gpmc.h>
> >  #include <mach/onenand.h>
> > -#include <mach/gpio.h>
> >  #include <mach/pm.h>
> >
> >  #include <mach/dma.h>
> > @@ -629,7 +629,8 @@ static int __devinit omap2_onenand_probe(struct
> > platform_device *pdev) }
> >
> >  	if (c->gpio_irq) {
> > -		if ((r = omap_request_gpio(c->gpio_irq)) < 0) {
> > +		r = gpio_request(c->gpio_irq, "OneNAND Irq");
> > +		if (r < 0) {
> >  			dev_err(&pdev->dev,  "Failed to request GPIO%d for "
> >  				"OneNAND\n", c->gpio_irq);
> >  			goto err_iounmap;
> > @@ -726,7 +727,7 @@ err_release_dma:
> >  		free_irq(gpio_to_irq(c->gpio_irq), c);
> >  err_release_gpio:
> >  	if (c->gpio_irq)
> > -		omap_free_gpio(c->gpio_irq);
> > +		gpio_free(c->gpio_irq);
> >  err_iounmap:
> >  	iounmap(c->onenand.base);
> >  err_release_mem_region:
> > @@ -761,7 +762,7 @@ static int __devexit omap2_onenand_remove(struct
> > platform_device *pdev) platform_set_drvdata(pdev, NULL);
> >  	if (c->gpio_irq) {
> >  		free_irq(gpio_to_irq(c->gpio_irq), c);
> > -		omap_free_gpio(c->gpio_irq);
> > +		gpio_free(c->gpio_irq);
> >  	}
> >  	iounmap(c->onenand.base);
> >  	release_mem_region(c->phys_base, ONENAND_IO_SIZE);
> > --
> > 1.5.4.4.21.gc4a6c


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux