* [patch] powerpc: add scanning of ebc bus to of_platform
@ 2006-12-08 10:41 Christian Krafft
2006-12-08 22:53 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 8+ messages in thread
From: Christian Krafft @ 2006-12-08 10:41 UTC (permalink / raw)
To: linuxppc-dev; +Cc: krafft
Subject: powerpc: add scanning of ebc bus to of_platform
This patch add scanning of ebc bus to of_platform, which is needed
to recognize devices located on that bus.
Signed-off-by: Christian Krafft <krafft@de.ibm.com>
Index: linux-2.6.19-rc6/arch/powerpc/kernel/of_platform.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- linux-2.6.19-rc6.orig/arch/powerpc/kernel/of_platform.c
+++ linux-2.6.19-rc6/arch/powerpc/kernel/of_platform.c
@@ -50,6 +50,7 @@ static struct of_device_id of_default_bu
{ .type =3D "plb5", },
{ .type =3D "plb4", },
{ .type =3D "opb", },
+ { .type =3D "ebc", },
{},
};
=20
--=20
Mit freundlichen Gr=FCssen,
kind regards,
Christian Krafft
IBM Systems & Technology Group,=20
Linux Kernel Development
IT Specialist
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] powerpc: add scanning of ebc bus to of_platform
2006-12-08 10:41 [patch] powerpc: add scanning of ebc bus to of_platform Christian Krafft
@ 2006-12-08 22:53 ` Benjamin Herrenschmidt
2006-12-09 10:04 ` Segher Boessenkool
0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2006-12-08 22:53 UTC (permalink / raw)
To: Christian Krafft; +Cc: linuxppc-dev
On Fri, 2006-12-08 at 11:41 +0100, Christian Krafft wrote:
> Subject: powerpc: add scanning of ebc bus to of_platform
>
> This patch add scanning of ebc bus to of_platform, which is needed
> to recognize devices located on that bus.
>
> Signed-off-by: Christian Krafft <krafft@de.ibm.com>
I'd like other people opinions here... But I'm tempted to remove the
"default" list of bus types here and have it always be passed by the
platform... just in case.
If you guys prefer to keep it that way, then fine, patch is
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Ben.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] powerpc: add scanning of ebc bus to of_platform
2006-12-08 22:53 ` Benjamin Herrenschmidt
@ 2006-12-09 10:04 ` Segher Boessenkool
2006-12-09 11:36 ` Arnd Bergmann
0 siblings, 1 reply; 8+ messages in thread
From: Segher Boessenkool @ 2006-12-09 10:04 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Christian Krafft, linuxppc-dev
> I'd like other people opinions here... But I'm tempted to remove the
> "default" list of bus types here and have it always be passed by the
> platform... just in case.
That's probably best -- no sense in registering devices
on buses that the platform doesn't know how to drive!
Segher
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] powerpc: add scanning of ebc bus to of_platform
2006-12-09 10:04 ` Segher Boessenkool
@ 2006-12-09 11:36 ` Arnd Bergmann
2006-12-10 12:17 ` Segher Boessenkool
2006-12-11 2:25 ` Paul Mackerras
0 siblings, 2 replies; 8+ messages in thread
From: Arnd Bergmann @ 2006-12-09 11:36 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Christian Krafft
On Saturday 09 December 2006 11:04, Segher Boessenkool wrote:
>
> > I'd like other people opinions here... But I'm tempted to remove the
> > "default" list of bus types here and have it always be passed by the
> > platform... just in case.
I think for the flat device tree, we often have only type=soc,
or compatible=soc anyway, and there is a limited number of
internal bus types we want to probe on top of that for real
OF implementations.
> That's probably best -- no sense in registering devices
> on buses that the platform doesn't know how to drive!
But the platform doesn't need how to drive them, the device driver
needs to. All the platform needs to know is the fact that it can
deal with SOC devices that are automatically probed.
I'd much prefer to have the list in the same file that drives the
devices in the first place. It's probably also good to register
them as MODULE_DEVICE_TABLE(), for documentation purposes, even
if the driver can't be built as a module yet.
Arnd <><
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] powerpc: add scanning of ebc bus to of_platform
2006-12-09 11:36 ` Arnd Bergmann
@ 2006-12-10 12:17 ` Segher Boessenkool
2006-12-11 2:25 ` Paul Mackerras
1 sibling, 0 replies; 8+ messages in thread
From: Segher Boessenkool @ 2006-12-10 12:17 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linuxppc-dev, Christian Krafft
>> That's probably best -- no sense in registering devices
>> on buses that the platform doesn't know how to drive!
>
> But the platform doesn't need how to drive them, the device driver
> needs to.
No -- the platform needs to know how to do low-level
bus operations (I/O reads, etc). For most memory-mapped
buses this is pretty trivial, of course.
Maybe we're just disagreeing over the word "platform"
here?
Segher
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] powerpc: add scanning of ebc bus to of_platform
2006-12-09 11:36 ` Arnd Bergmann
2006-12-10 12:17 ` Segher Boessenkool
@ 2006-12-11 2:25 ` Paul Mackerras
2006-12-11 6:56 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 8+ messages in thread
From: Paul Mackerras @ 2006-12-11 2:25 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linuxppc-dev, Christian Krafft
Arnd Bergmann writes:
> But the platform doesn't need how to drive them, the device driver
> needs to. All the platform needs to know is the fact that it can
> deal with SOC devices that are automatically probed.
>
> I'd much prefer to have the list in the same file that drives the
> devices in the first place. It's probably also good to register
> them as MODULE_DEVICE_TABLE(), for documentation purposes, even
> if the driver can't be built as a module yet.
So is that an ack or a nack for the patch? Sounds like a nack to me,
but I'm not sure. :)
Paul.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] powerpc: add scanning of ebc bus to of_platform
2006-12-11 2:25 ` Paul Mackerras
@ 2006-12-11 6:56 ` Benjamin Herrenschmidt
2006-12-11 10:01 ` Arnd Bergmann
0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2006-12-11 6:56 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev, Arnd Bergmann, Christian Krafft
On Mon, 2006-12-11 at 13:25 +1100, Paul Mackerras wrote:
> Arnd Bergmann writes:
>
> > But the platform doesn't need how to drive them, the device driver
> > needs to. All the platform needs to know is the fact that it can
> > deal with SOC devices that are automatically probed.
> >
> > I'd much prefer to have the list in the same file that drives the
> > devices in the first place. It's probably also good to register
> > them as MODULE_DEVICE_TABLE(), for documentation purposes, even
> > if the driver can't be built as a module yet.
>
> So is that an ack or a nack for the patch? Sounds like a nack to me,
> but I'm not sure. :)
Put it in for now.
Ben.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch] powerpc: add scanning of ebc bus to of_platform
2006-12-11 6:56 ` Benjamin Herrenschmidt
@ 2006-12-11 10:01 ` Arnd Bergmann
0 siblings, 0 replies; 8+ messages in thread
From: Arnd Bergmann @ 2006-12-11 10:01 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, Paul Mackerras, Christian Krafft
On Monday 11 December 2006 07:56, Benjamin Herrenschmidt wrote:
>=20
> > an ack or a nack for the patch? =A0Sounds like a nack to me,
> > but I'm not sure. :)
>=20
> Put it in for now.
>=20
Yes, definitely. I was not objecting to Christian's patch anyway,
but to Ben's idea of getting rid of that part of the code, which
is a side-discussion.
Arnd <><
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-12-11 10:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 10:41 [patch] powerpc: add scanning of ebc bus to of_platform Christian Krafft
2006-12-08 22:53 ` Benjamin Herrenschmidt
2006-12-09 10:04 ` Segher Boessenkool
2006-12-09 11:36 ` Arnd Bergmann
2006-12-10 12:17 ` Segher Boessenkool
2006-12-11 2:25 ` Paul Mackerras
2006-12-11 6:56 ` Benjamin Herrenschmidt
2006-12-11 10:01 ` Arnd Bergmann
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).