[PATCH v2] drm: shmobile: Perform initialization/cleanup at probe/remove time

2016-12-13 Thread Laurent Pinchart
Hi Daniel, On Tuesday 13 Dec 2016 22:01:36 Daniel Vetter wrote: > On Tue, Dec 13, 2016 at 07:19:15PM +0200, Laurent Pinchart wrote: > > On Tuesday 13 Dec 2016 18:11:34 Daniel Vetter wrote: > >> On Tue, Dec 13, 2016 at 02:59:48PM +0200, Laurent Pinchart wrote: > >>> From: Laurent Pinchart > >>> >

[PATCH v2] drm: shmobile: Perform initialization/cleanup at probe/remove time

2016-12-13 Thread Daniel Vetter
On Tue, Dec 13, 2016 at 07:19:15PM +0200, Laurent Pinchart wrote: > Hi Daniel, > > On Tuesday 13 Dec 2016 18:11:34 Daniel Vetter wrote: > > On Tue, Dec 13, 2016 at 02:59:48PM +0200, Laurent Pinchart wrote: > > > From: Laurent Pinchart > > > > > > The drm driver .load() operation is prone to race

[PATCH v2] drm: shmobile: Perform initialization/cleanup at probe/remove time

2016-12-13 Thread Laurent Pinchart
Hi Daniel, On Tuesday 13 Dec 2016 18:11:34 Daniel Vetter wrote: > On Tue, Dec 13, 2016 at 02:59:48PM +0200, Laurent Pinchart wrote: > > From: Laurent Pinchart > > > > The drm driver .load() operation is prone to race conditions as it > > initializes the driver after registering the device nodes.

[PATCH v2] drm: shmobile: Perform initialization/cleanup at probe/remove time

2016-12-13 Thread Daniel Vetter
On Tue, Dec 13, 2016 at 02:59:48PM +0200, Laurent Pinchart wrote: > From: Laurent Pinchart > > The drm driver .load() operation is prone to race conditions as it > initializes the driver after registering the device nodes. Its usage is > deprecated, inline it in the probe function and call drm_de

[PATCH v2] drm: shmobile: Perform initialization/cleanup at probe/remove time

2016-12-13 Thread Laurent Pinchart
From: Laurent Pinchart The drm driver .load() operation is prone to race conditions as it initializes the driver after registering the device nodes. Its usage is deprecated, inline it in the probe function and call drm_dev_alloc() and drm_dev_register() explicitly. For consistency inline the .un