[PATCH] drm/bridge: introduce bridge detaching mechanism

2016-08-23 Thread Daniel Vetter
On Tue, Aug 23, 2016 at 04:10:04PM +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 insta

[PATCH] drm/bridge: introduce bridge detaching mechanism

2016-08-23 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 ->de