Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [MIPS] msp71xx: resolve compilation problem in msp_setup.c
@ 2008-08-17 17:51 Shane McDonald
  2008-08-18 21:28 ` Ralf Baechle
  0 siblings, 1 reply; 6+ messages in thread
From: Shane McDonald @ 2008-08-17 17:51 UTC (permalink / raw)
  To: linux-mips, ralf

The msp71xx_defconfig has never compiled in a kernel release.  This is
because the file msp_setup.c relies on some definitions from the PMCMSP
GPIO driver, which has not yet been accepted into the kernel.
This patch checks for the existence of the PMCMSP GPIO driver;
if it doesn't exist, no GPIO functions are referenced.

This patch will continue to work after the GPIO driver has been accepted,
so no changes will be necessary when that happens.

Signed-off-by: Shane McDonald <mcdonald.shane@gmail.com>
---
 arch/mips/pmc-sierra/msp71xx/msp_setup.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Note that this patch doesn't clean up all compilation problems with
the MSP71xx: there is still a problem with a multiple definition
of plat_timer_setup.  I'm trying to wrangle some hardware to sort
this out.  Note that removing the definition of plat_timer_setup
in msp_time.c allows the kernel to compile completely,
but I don't know if it will run.

diff -uprN orig/arch/mips/pmc-sierra/msp71xx/msp_setup.c patched/arch/mips/pmc-sierra/msp71xx/msp_setup.c
--- orig/arch/mips/pmc-sierra/msp71xx/msp_setup.c	2008-08-17 10:15:11.000000000 -0600
+++ patched/arch/mips/pmc-sierra/msp71xx/msp_setup.c	2008-08-17 10:15:48.000000000 -0600
@@ -19,7 +19,7 @@
 #include <msp_prom.h>
 #include <msp_regs.h>
 
-#if defined(CONFIG_PMC_MSP7120_GW)
+#if defined(CONFIG_PMC_MSP7120_GW) && defined(CONFIG_PMCMSP_GPIO)
 #include <msp_regops.h>
 #include <msp_gpio.h>
 #define MSP_BOARD_RESET_GPIO	9
@@ -79,7 +79,7 @@ void msp7120_reset(void)
 	/* Wait a bit for the DDRC to settle */
 	for (i = 0; i < 100000000; i++);
 
-#if defined(CONFIG_PMC_MSP7120_GW)
+#if defined(CONFIG_PMC_MSP7120_GW) && defined(CONFIG_PMCMSP_GPIO)
 	/*
 	 * Set GPIO 9 HI, (tied to board reset logic)
 	 * GPIO 9 is the 4th GPIO of register 3

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

* Re: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
  2008-08-17 17:51 [MIPS] msp71xx: resolve compilation problem in msp_setup.c Shane McDonald
@ 2008-08-18 21:28 ` Ralf Baechle
  2008-08-18 23:11   ` Patrick Glass
  0 siblings, 1 reply; 6+ messages in thread
From: Ralf Baechle @ 2008-08-18 21:28 UTC (permalink / raw)
  To: Shane McDonald; +Cc: linux-mips

On Sun, Aug 17, 2008 at 11:51:48AM -0600, Shane McDonald wrote:
> From: Shane McDonald <mcdonald.shane@gmail.com>
> Date: Sun, 17 Aug 2008 11:51:48 -0600
> To: linux-mips@linux-mips.org, ralf@linux-mips.org
> Subject: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
> 
> The msp71xx_defconfig has never compiled in a kernel release.  This is
> because the file msp_setup.c relies on some definitions from the PMCMSP
> GPIO driver, which has not yet been accepted into the kernel.
> This patch checks for the existence of the PMCMSP GPIO driver;
> if it doesn't exist, no GPIO functions are referenced.
> 
> This patch will continue to work after the GPIO driver has been accepted,
> so no changes will be necessary when that happens.

Has the driver actually been submitted?  In its current form I doubt it'll
be accepted since there is now a generic GPIO framework so there should
be no more new drivers/char/ GPIO drivers.

  Ralf

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

* RE: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
  2008-08-18 21:28 ` Ralf Baechle
@ 2008-08-18 23:11   ` Patrick Glass
  2008-08-18 23:11     ` Patrick Glass
                       ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Patrick Glass @ 2008-08-18 23:11 UTC (permalink / raw)
  To: Ralf Baechle, linux-mips

>On Sun, Aug 17, 2008 at 11:51:48AM -0600, Shane McDonald wrote:
>> From: Shane McDonald <mcdonald.shane@gmail.com>
>> Date: Sun, 17 Aug 2008 11:51:48 -0600
>> To: linux-mips@linux-mips.org, ralf@linux-mips.org
>> Subject: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
>> 
>> The msp71xx_defconfig has never compiled in a kernel release.  This
is 
>> because the file msp_setup.c relies on some definitions from the 
>> PMCMSP GPIO driver, which has not yet been accepted into the kernel.
>> This patch checks for the existence of the PMCMSP GPIO driver; if it 
>> doesn't exist, no GPIO functions are referenced.
>> 
>> This patch will continue to work after the GPIO driver has been 
>> accepted, so no changes will be necessary when that happens.
>
>Has the driver actually been submitted?  In its current form I doubt
it'll be accepted since
>there is now a generic GPIO framework so there should be no more new
drivers/char/ GPIO 
>drivers.
>
>  Ralf

Hi,
I have attempted to submit a new patch for msp71xx which enables gpio
access through the new gpio framework. Hopefully it should propogate
throught the list soon... if I have not messed up (It's my first patch
for linux-mips). Also we have a newer msp_setup that removes the gpio
calls altogether. I will cleanup our msp_setup.c file and create a new
patch that can replace this patch if that's ok with you.

Thanks,
Patrick Glass

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

* RE: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
  2008-08-18 23:11   ` Patrick Glass
@ 2008-08-18 23:11     ` Patrick Glass
  2008-08-18 23:22     ` Shane McDonald
  2008-08-19  9:17     ` Ralf Baechle
  2 siblings, 0 replies; 6+ messages in thread
From: Patrick Glass @ 2008-08-18 23:11 UTC (permalink / raw)
  To: Ralf Baechle, linux-mips

>On Sun, Aug 17, 2008 at 11:51:48AM -0600, Shane McDonald wrote:
>> From: Shane McDonald <mcdonald.shane@gmail.com>
>> Date: Sun, 17 Aug 2008 11:51:48 -0600
>> To: linux-mips@linux-mips.org, ralf@linux-mips.org
>> Subject: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
>> 
>> The msp71xx_defconfig has never compiled in a kernel release.  This
is 
>> because the file msp_setup.c relies on some definitions from the 
>> PMCMSP GPIO driver, which has not yet been accepted into the kernel.
>> This patch checks for the existence of the PMCMSP GPIO driver; if it 
>> doesn't exist, no GPIO functions are referenced.
>> 
>> This patch will continue to work after the GPIO driver has been 
>> accepted, so no changes will be necessary when that happens.
>
>Has the driver actually been submitted?  In its current form I doubt
it'll be accepted since
>there is now a generic GPIO framework so there should be no more new
drivers/char/ GPIO 
>drivers.
>
>  Ralf

Hi,
I have attempted to submit a new patch for msp71xx which enables gpio
access through the new gpio framework. Hopefully it should propogate
throught the list soon... if I have not messed up (It's my first patch
for linux-mips). Also we have a newer msp_setup that removes the gpio
calls altogether. I will cleanup our msp_setup.c file and create a new
patch that can replace this patch if that's ok with you.

Thanks,
Patrick Glass

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

* Re: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
  2008-08-18 23:11   ` Patrick Glass
  2008-08-18 23:11     ` Patrick Glass
@ 2008-08-18 23:22     ` Shane McDonald
  2008-08-19  9:17     ` Ralf Baechle
  2 siblings, 0 replies; 6+ messages in thread
From: Shane McDonald @ 2008-08-18 23:22 UTC (permalink / raw)
  To: Patrick Glass; +Cc: Ralf Baechle, linux-mips

[-- Attachment #1: Type: text/plain, Size: 1831 bytes --]

Hi Patrick:

  I'm good with replacing the msp_setup patch that I had I submitted.

  Do you also have a patch to replace the plat_timer_setup function
definition in msp_time.c?  If these two problems are resolved, the
msp71xx_defconfig will finally compile.

Shane McDonald

On Mon, Aug 18, 2008 at 5:11 PM, Patrick Glass <Patrick_Glass@pmc-sierra.com
> wrote:

> >On Sun, Aug 17, 2008 at 11:51:48AM -0600, Shane McDonald wrote:
> >> From: Shane McDonald <mcdonald.shane@gmail.com>
> >> Date: Sun, 17 Aug 2008 11:51:48 -0600
> >> To: linux-mips@linux-mips.org, ralf@linux-mips.org
> >> Subject: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
> >>
> >> The msp71xx_defconfig has never compiled in a kernel release.  This
> is
> >> because the file msp_setup.c relies on some definitions from the
> >> PMCMSP GPIO driver, which has not yet been accepted into the kernel.
> >> This patch checks for the existence of the PMCMSP GPIO driver; if it
> >> doesn't exist, no GPIO functions are referenced.
> >>
> >> This patch will continue to work after the GPIO driver has been
> >> accepted, so no changes will be necessary when that happens.
> >
> >Has the driver actually been submitted?  In its current form I doubt
> it'll be accepted since
> >there is now a generic GPIO framework so there should be no more new
> drivers/char/ GPIO
> >drivers.
> >
> >  Ralf
>
> Hi,
> I have attempted to submit a new patch for msp71xx which enables gpio
> access through the new gpio framework. Hopefully it should propogate
> throught the list soon... if I have not messed up (It's my first patch
> for linux-mips). Also we have a newer msp_setup that removes the gpio
> calls altogether. I will cleanup our msp_setup.c file and create a new
> patch that can replace this patch if that's ok with you.
>
> Thanks,
> Patrick Glass
>
>

[-- Attachment #2: Type: text/html, Size: 2573 bytes --]

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

* Re: [MIPS] msp71xx: resolve compilation problem in msp_setup.c
  2008-08-18 23:11   ` Patrick Glass
  2008-08-18 23:11     ` Patrick Glass
  2008-08-18 23:22     ` Shane McDonald
@ 2008-08-19  9:17     ` Ralf Baechle
  2 siblings, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2008-08-19  9:17 UTC (permalink / raw)
  To: Patrick Glass; +Cc: linux-mips

On Mon, Aug 18, 2008 at 04:11:13PM -0700, Patrick Glass wrote:

> Hi,
> I have attempted to submit a new patch for msp71xx which enables gpio
> access through the new gpio framework. Hopefully it should propogate
> throught the list soon... if I have not messed up (It's my first patch
> for linux-mips). Also we have a newer msp_setup that removes the gpio
> calls altogether. I will cleanup our msp_setup.c file and create a new
> patch that can replace this patch if that's ok with you.

Of course.

  Ralf

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

end of thread, other threads:[~2008-08-19  9:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-17 17:51 [MIPS] msp71xx: resolve compilation problem in msp_setup.c Shane McDonald
2008-08-18 21:28 ` Ralf Baechle
2008-08-18 23:11   ` Patrick Glass
2008-08-18 23:11     ` Patrick Glass
2008-08-18 23:22     ` Shane McDonald
2008-08-19  9:17     ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox