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

2016-08-25 Thread Daniel Vetter
On Wed, Aug 24, 2016 at 02:05:59PM +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 v2 1/3] drm/bridge: introduce bridge detaching mechanism

2016-08-24 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