OSDN Git Service

drm/bridge/ti-sn65dsi86: (Un)register aux device on bridge attach/detach
authorLyude Paul <lyude@redhat.com>
Fri, 19 Feb 2021 21:53:02 +0000 (16:53 -0500)
committerLyude Paul <lyude@redhat.com>
Tue, 23 Mar 2021 18:17:41 +0000 (14:17 -0400)
commit617126187530324e5024e4eb9a070218c4b60e93
tree18544c21fb1b381ce5b7408abc09df42710d931d
parent85ddbe2c4ac16e050d0d432b200ac8039d5ff2ac
drm/bridge/ti-sn65dsi86: (Un)register aux device on bridge attach/detach

Since we're about to add a back-pointer to drm_dev in drm_dp_aux, let's
move the AUX adapter registration to the first point where we know which
DRM device we'll be working with - when the drm_bridge is attached.
Likewise, we unregister the AUX adapter on bridge detachment by adding a
ti_sn_bridge_detach() callback.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210219215326.2227596-7-lyude@redhat.com
drivers/gpu/drm/bridge/ti-sn65dsi86.c