[lkml]   [2013]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Strange location and name for platform devices when device-tree is used.
On Sun, Nov 03, 2013 at 07:22:10AM +1100, Benjamin Herrenschmidt wrote:
> On Sat, 2013-11-02 at 08:58 -0700, Greg Kroah-Hartman wrote:
> > Just loop through all the platform devices before registering it to
> > determine if you need to do this, the platform code can do this just
> > fine. If you try to register a duplicate name with the driver core,
> > odds are it will complain loudly, so don't do that.
> But that loop + registration is racy ... oh well, we might do something
> better with Neil's idea of labels instead.

How is it racy? Only one platform device should be allowed to be
registered at a time, there is a per-bus lock that should be used to
enforce this, right?


greg k-h

 \ /
  Last update: 2013-11-02 22:21    [W:0.057 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site