[PATCH 12/12] drm: make sysfs device always available for minors

2014-07-24 Thread Daniel Vetter
On Thu, Jul 24, 2014 at 12:48:49PM +0200, David Herrmann wrote: > Hi > > On Thu, Jul 24, 2014 at 12:36 PM, Daniel Vetter wrote: > > On Wed, Jul 23, 2014 at 05:26:47PM +0200, David Herrmann wrote: > >> For each minor we allocate a sysfs device as minor->kdev. Currently, this > >> is allocated and

[PATCH 12/12] drm: make sysfs device always available for minors

2014-07-24 Thread David Herrmann
Hi On Thu, Jul 24, 2014 at 12:36 PM, Daniel Vetter wrote: > On Wed, Jul 23, 2014 at 05:26:47PM +0200, David Herrmann wrote: >> For each minor we allocate a sysfs device as minor->kdev. Currently, this >> is allocated and registered in drm_minor_register(). This makes it >> impossible to add sysfs

[PATCH 12/12] drm: make sysfs device always available for minors

2014-07-24 Thread Daniel Vetter
On Wed, Jul 23, 2014 at 05:26:47PM +0200, David Herrmann wrote: > For each minor we allocate a sysfs device as minor->kdev. Currently, this > is allocated and registered in drm_minor_register(). This makes it > impossible to add sysfs-attributes to the device before it is registered. > Therefore, t

[PATCH 12/12] drm: make sysfs device always available for minors

2014-07-23 Thread David Herrmann
For each minor we allocate a sysfs device as minor->kdev. Currently, this is allocated and registered in drm_minor_register(). This makes it impossible to add sysfs-attributes to the device before it is registered. Therefore, they are not added atomically, nor can we move device_add() *after* ->loa