linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx
@ 2008-07-25  7:44 Wolfgang Grandegger
  2008-07-25 13:20 ` Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Grandegger @ 2008-07-25  7:44 UTC (permalink / raw)
  To: Linuxppc-dev

Since recent modifications to the MPC I2C code, the MPC I2C buses are 
not found any more. This patch fixes the problem by adding proper OF
bus ids.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
---
 arch/powerpc/platforms/85xx/tqm85xx.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c
===================================================================
--- linux-2.6-galak.orig/arch/powerpc/platforms/85xx/tqm85xx.c
+++ linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c
@@ -156,15 +156,15 @@ static void tqm85xx_show_cpuinfo(struct 
 }
 
 static struct of_device_id __initdata of_bus_ids[] = {
+	{ .type = "soc", },
+	{ .compatible = "soc", },
 	{ .compatible = "simple-bus", },
 	{},
 };
 
 static int __init declare_of_platform_devices(void)
 {
-	of_platform_bus_probe(NULL, of_bus_ids, NULL);
-
-	return 0;
+	return of_platform_bus_probe(NULL, of_bus_ids, NULL);
 }
 machine_device_initcall(tqm85xx, declare_of_platform_devices);
 

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

* Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx
  2008-07-25  7:44 [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx Wolfgang Grandegger
@ 2008-07-25 13:20 ` Grant Likely
  2008-07-25 15:16   ` Wolfgang Grandegger
  0 siblings, 1 reply; 7+ messages in thread
From: Grant Likely @ 2008-07-25 13:20 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev

On Fri, Jul 25, 2008 at 3:44 AM, Wolfgang Grandegger <wg@grandegger.com> wrote:
> Since recent modifications to the MPC I2C code, the MPC I2C buses are not
> found any more. This patch fixes the problem by adding proper OF
> bus ids.
>
> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
> ---
> arch/powerpc/platforms/85xx/tqm85xx.c |    6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> Index: linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c
> ===================================================================
> --- linux-2.6-galak.orig/arch/powerpc/platforms/85xx/tqm85xx.c
> +++ linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c
> @@ -156,15 +156,15 @@ static void tqm85xx_show_cpuinfo(struct }
>
> static struct of_device_id __initdata of_bus_ids[] = {
> +       { .type = "soc", },
> +       { .compatible = "soc", },
>        { .compatible = "simple-bus", },

Ugh, i assume this is to support older .dts files that don't have
simple-bus in their compatible property?  Please put them at the end
of the list and put a comment ahead of them stating that they are
legacy support.  You should also state in the comment which boards or
dts files these entries provide support for.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

* Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx
  2008-07-25 13:20 ` Grant Likely
@ 2008-07-25 15:16   ` Wolfgang Grandegger
  2008-07-25 15:30     ` Jon Loeliger
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Grandegger @ 2008-07-25 15:16 UTC (permalink / raw)
  To: Grant Likely; +Cc: Linuxppc-dev

Grant Likely wrote:
> On Fri, Jul 25, 2008 at 3:44 AM, Wolfgang Grandegger <wg@grandegger.com> wrote:
>> Since recent modifications to the MPC I2C code, the MPC I2C buses are not
>> found any more. This patch fixes the problem by adding proper OF
>> bus ids.
>>
>> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
>> ---
>> arch/powerpc/platforms/85xx/tqm85xx.c |    6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> Index: linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c
>> ===================================================================
>> --- linux-2.6-galak.orig/arch/powerpc/platforms/85xx/tqm85xx.c
>> +++ linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c
>> @@ -156,15 +156,15 @@ static void tqm85xx_show_cpuinfo(struct }
>>
>> static struct of_device_id __initdata of_bus_ids[] = {
>> +       { .type = "soc", },
>> +       { .compatible = "soc", },
>>        { .compatible = "simple-bus", },
> 
> Ugh, i assume this is to support older .dts files that don't have
> simple-bus in their compatible property?  Please put them at the end
> of the list and put a comment ahead of them stating that they are
> legacy support.  You should also state in the comment which boards or
> dts files these entries provide support for.

Ah, I see. For the TQM8548 adding the following compatible line:

         soc8548@e0000000 {
		...
		compatible = "fsl,mpc8548-immr", "simple-bus"; 


solved my issues. All other DTS files for the TQM85xx modules have this 
line. It got lost somehow for the TQM8548. Thanks for pointing me to the 
real problem. Forget this patch, I will send a new one fixing the DTS file.

Wolfgang.

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

* Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx
  2008-07-25 15:16   ` Wolfgang Grandegger
@ 2008-07-25 15:30     ` Jon Loeliger
  2008-07-25 15:37       ` Wolfgang Grandegger
  0 siblings, 1 reply; 7+ messages in thread
From: Jon Loeliger @ 2008-07-25 15:30 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev

Wolfgang Grandegger wrote:

> Ah, I see. For the TQM8548 adding the following compatible line:
> 
>         soc8548@e0000000 {
>         ...
>         compatible = "fsl,mpc8548-immr", "simple-bus";
> 


Hmmmm..... While you are there, I think you should drop
the "8548" part of "soc8548" to get just "soc@e0000000".

Thanks,
jdl

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

* Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx
  2008-07-25 15:30     ` Jon Loeliger
@ 2008-07-25 15:37       ` Wolfgang Grandegger
  2008-08-17  9:03         ` Wolfgang Grandegger
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Grandegger @ 2008-07-25 15:37 UTC (permalink / raw)
  To: Jon Loeliger; +Cc: Linuxppc-dev

Jon Loeliger wrote:
> Wolfgang Grandegger wrote:
> 
>> Ah, I see. For the TQM8548 adding the following compatible line:
>>
>>         soc8548@e0000000 {
>>         ...
>>         compatible = "fsl,mpc8548-immr", "simple-bus";
>>
> 
> 
> Hmmmm..... While you are there, I think you should drop
> the "8548" part of "soc8548" to get just "soc@e0000000".

Well, right. I'm going to check the tqm8548.dts file more carefully.

Wolfgang.

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

* Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx
  2008-07-25 15:37       ` Wolfgang Grandegger
@ 2008-08-17  9:03         ` Wolfgang Grandegger
  2008-08-17 15:52           ` Jon Loeliger
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Grandegger @ 2008-08-17  9:03 UTC (permalink / raw)
  To: Jon Loeliger; +Cc: Linuxppc-dev

Wolfgang Grandegger wrote:
> Jon Loeliger wrote:
>> Wolfgang Grandegger wrote:
>>
>>> Ah, I see. For the TQM8548 adding the following compatible line:
>>>
>>>         soc8548@e0000000 {
>>>         ...
>>>         compatible = "fsl,mpc8548-immr", "simple-bus";
>>>
>>
>>
>> Hmmmm..... While you are there, I think you should drop
>> the "8548" part of "soc8548" to get just "soc@e0000000".
> 
> Well, right. I'm going to check the tqm8548.dts file more carefully.

Looking into 2.6.27-rc3, I realized that these issues have not yet been
fixed :-(. I just sent out a patch for 2.6.27 doing so:

  http://ozlabs.org/pipermail/linuxppc-dev/2008-August/061725.html

Thanks.

Wolfgang.

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

* Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx
  2008-08-17  9:03         ` Wolfgang Grandegger
@ 2008-08-17 15:52           ` Jon Loeliger
  0 siblings, 0 replies; 7+ messages in thread
From: Jon Loeliger @ 2008-08-17 15:52 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: Linuxppc-dev

> Wolfgang Grandegger wrote:
> > Jon Loeliger wrote:
> >>
> >> Hmmmm..... While you are there, I think you should drop
> >> the "8548" part of "soc8548" to get just "soc@e0000000".
> > 
> > Well, right. I'm going to check the tqm8548.dts file more carefully.
> 
> Looking into 2.6.27-rc3, I realized that these issues have not yet been
> fixed :-(. I just sent out a patch for 2.6.27 doing so:
> 
>   http://ozlabs.org/pipermail/linuxppc-dev/2008-August/061725.html

Thanks!

jdl

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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25  7:44 [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx Wolfgang Grandegger
2008-07-25 13:20 ` Grant Likely
2008-07-25 15:16   ` Wolfgang Grandegger
2008-07-25 15:30     ` Jon Loeliger
2008-07-25 15:37       ` Wolfgang Grandegger
2008-08-17  9:03         ` Wolfgang Grandegger
2008-08-17 15:52           ` Jon Loeliger

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).