From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [Ksummit-2013-discuss] [ARM ATTEND] Describing complex, non-probable system topologies
Date: Sun, 4 Aug 2013 23:55:35 -0700 [thread overview]
Message-ID: <20130805065535.GP7656@atomide.com> (raw)
In-Reply-To: <20130802141449.GA7533@kroah.com>
* Greg KH <greg@kroah.com> [130802 07:20]:
> On Fri, Aug 02, 2013 at 05:34:45AM -0700, Tony Lindgren wrote:
> > * Greg KH <greg@kroah.com> [130802 02:37]:
> > > On Fri, Aug 02, 2013 at 02:03:55AM -0700, Tony Lindgren wrote:
> > > > * Greg KH <greg@kroah.com> [130801 12:33]:
> > > > >
> > > > > The driver core handles this really well, you just have to create new
> > > > > busses, and don't rely on the "catch-all" platform_bus.
> > > >
> > > > Hmm do you have some example of a device driver that is generic and
> > > > is supported on platform_bus and some other bus?
> > >
> > > Take a look at drivers/usb/host/ohci* for one example that I know of,
> > > there are others all through the kernel as well.
> >
> > Uhh OK so I guess the answer is that the bus glue still needs to
> > be implemented separately for each driver and there's no generic
> > way of supporting multiple busses?
>
> Different busses implies that there are different ways to physically
> talk to the device hardware, so of course there is no generic way to
> support that.
Right, but in many cases the only difference between SoCs are some bus
specific things like reset and idling of the devices. And using platform
bus allows the driver to stay generic.
> Unless your subsystem wants to do what we did for USB, and define a
> generic way to talk to the hardware in a very abstract way, allowing for
> totally different types of physical layers to handle lots of different
> logical layer drivers. But odds are, you don't want to do that.
>
> It should be easy to just abstract out your "this is how I write a byte
> to the hardware" logic to handle the different bus types, if you really
> are using the same chip/core. Lots of drivers do this today just fine,
> it isn't a big deal.
I agree that makes sense for the driver specific things.
But for things that are completely bus specific for various SoCs, how
would you like to handle those?
For example, we are currently using platform bus and bus notifiers and
then the runtime PM calls from device driver trigger the bus specific
things.
Would you prefer to instead use a custom bus instead of extending
the platform bus for things like that?
Regards,
Tony
next prev parent reply other threads:[~2013-08-05 6:55 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 18:35 [ARM ATTEND] Describing complex, non-probable system topologies Will Deacon
2013-08-01 18:42 ` Dave Martin
2013-08-01 22:41 ` [Ksummit-2013-discuss] " David Brown
2013-08-01 19:27 ` Greg KH
2013-08-01 19:39 ` Russell King - ARM Linux
2013-08-01 20:15 ` Greg KH
2013-08-01 20:18 ` Russell King - ARM Linux
2013-08-01 20:36 ` Greg KH
2013-08-01 20:45 ` Russell King - ARM Linux
2013-08-01 21:04 ` Greg KH
2013-08-01 21:48 ` James Bottomley
2013-08-01 23:16 ` Mark Brown
2013-08-02 9:03 ` Tony Lindgren
2013-08-02 9:32 ` Greg KH
2013-08-02 12:34 ` Tony Lindgren
2013-08-02 14:14 ` Greg KH
2013-08-02 15:26 ` Dave Martin
2013-08-02 16:45 ` Will Deacon
2013-08-05 6:55 ` Tony Lindgren [this message]
2013-08-05 7:11 ` Greg KH
2013-08-05 7:37 ` Tony Lindgren
2013-08-05 8:02 ` Greg KH
2013-08-05 8:21 ` Tony Lindgren
2013-08-05 8:51 ` Greg KH
2013-08-05 9:14 ` Tony Lindgren
2013-08-08 16:50 ` Kevin Hilman
2013-08-02 11:53 ` Will Deacon
2013-08-02 12:37 ` Tony Lindgren
2013-08-02 14:16 ` Greg KH
2013-08-02 14:20 ` Greg KH
2013-08-02 16:09 ` Will Deacon
2013-08-02 22:32 ` Greg KH
2013-08-03 5:16 ` Olof Johansson
2013-08-05 6:47 ` Tony Lindgren
2013-08-07 1:52 ` Will Deacon
2013-08-20 6:59 ` Hiroshi Doyu
2013-08-07 1:49 ` Will Deacon
2013-08-01 21:41 ` James Bottomley
2013-08-02 17:08 ` Will Deacon
2013-08-01 22:26 ` Bjorn Helgaas
2013-08-02 12:01 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130805065535.GP7656@atomide.com \
--to=tony@atomide.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).