Thread (1 message) 1 message, 1 author, 2010-08-05

Re: [PATCH] platform: Facilitate the creation of pseduo-platform busses

From: Kevin Hilman <hidden>
Date: 2010-08-05 15:27:48
Also in: linux-arm-msm, linux-omap, lkml

Magnus Damm [off-list ref] writes:
On Thu, Aug 5, 2010 at 7:14 AM, Patrick Pannuto [off-list ref] wrote:
quoted
Inspiration for this comes from:
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg31161.html

RFC: http://lkml.org/lkml/2010/8/3/496
Patch is unchanged from the RFC. Reviews seemed generally positive
and it seemed this was desired functionality.
Thanks for your patch, it's really nice to see work done in this area!
I'd like to see something like this merged in the not so distant
future. At this point I'm not so concerned about the details, so I'll
restrict myself to this:
quoted
/drivers/my_driver.c
       static struct platform_driver my_driver = {
               .driver = {
                       .name   = "my-driver",
                       .owner  = THIS_MODULE,
                       .bus    = &my_bus_type,
               },
       };
I would really prefer not to have the bus type in the here. I
understand it's needed at this point, but I wonder if it's possible to
adjust the device<->driver matching for platform devices to allow any
type of pseudo-platform bus_type.
I totally agree here.  Keeping the drivers ignorant of the bus (or SoC)
they are on will make them much more portable.

Kevin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help