[PATCH v3 1/3] drm/bridge: introduce bridge detaching mechanism

2016-08-29 Thread Archit Taneja
On 08/25/2016 05:46 PM, Daniel Vetter wrote: > On Thu, Aug 25, 2016 at 11:04:32AM +0200, Andrea Merello wrote: >> Up to now, once a bridge has been attached to a DRM device, it cannot >> be undone. >> >> In particular you couldn't rmmod/insmod a DRM driver that uses a bridge, >> because the

[PATCH v3 1/3] drm/bridge: introduce bridge detaching mechanism

2016-08-25 Thread Daniel Vetter
On Thu, Aug 25, 2016 at 11:04:32AM +0200, Andrea Merello wrote: > Up to now, once a bridge has been attached to a DRM device, it cannot > be undone. > > In particular you couldn't rmmod/insmod a DRM driver that uses a bridge, > because the bridge would remain bound to the first (dead) driver

[PATCH v3 1/3] drm/bridge: introduce bridge detaching mechanism

2016-08-25 Thread Andrea Merello
Up to now, once a bridge has been attached to a DRM device, it cannot be undone. In particular you couldn't rmmod/insmod a DRM driver that uses a bridge, because the bridge would remain bound to the first (dead) driver instance. This patch fixes this by introducing drm_encoder_detach() and a