drm/dp: Add backpointer to drm_device in drm_dp_aux
This is something that we've wanted for a while now: the ability to actually look up the respective drm_device for a given drm_dp_aux struct. This will also allow us to transition over to using the drm_dbg_*() helpers for debug message printing, as we'll finally have a drm_device to reference for doing so. Note that there is one limitation with this - because some DP AUX adapters exist as platform devices which are initialized independently of their respective DRM devices, one cannot rely on drm_dp_aux->drm_dev to always be non-NULL until drm_dp_aux_register() has been called. We make sure to point this out in the documentation for struct drm_dp_aux. v3: * Add WARN_ON_ONCE() to drm_dp_aux_register() if drm_dev isn't filled out Signed-off-by:Lyude Paul <lyude@redhat.com> Acked-by:
Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210423184309.207645-4-lyude@redhat.com Reviewed-by:
Dave Airlie <airlied@redhat.com>
Showing
- drivers/gpu/drm/amd/amdgpu/atombios_dp.c 2 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/atombios_dp.c
- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c 1 addition, 0 deletionsdrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
- drivers/gpu/drm/bridge/analogix/analogix-anx6345.c 1 addition, 0 deletionsdrivers/gpu/drm/bridge/analogix/analogix-anx6345.c
- drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c 1 addition, 0 deletionsdrivers/gpu/drm/bridge/analogix/analogix-anx78xx.c
- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c 1 addition, 0 deletionsdrivers/gpu/drm/bridge/analogix/analogix_dp_core.c
- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c 1 addition, 0 deletionsdrivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
- drivers/gpu/drm/bridge/tc358767.c 1 addition, 0 deletionsdrivers/gpu/drm/bridge/tc358767.c
- drivers/gpu/drm/bridge/ti-sn65dsi86.c 1 addition, 0 deletionsdrivers/gpu/drm/bridge/ti-sn65dsi86.c
- drivers/gpu/drm/drm_dp_aux_dev.c 6 additions, 0 deletionsdrivers/gpu/drm/drm_dp_aux_dev.c
- drivers/gpu/drm/drm_dp_helper.c 2 additions, 0 deletionsdrivers/gpu/drm/drm_dp_helper.c
- drivers/gpu/drm/drm_dp_mst_topology.c 1 addition, 0 deletionsdrivers/gpu/drm/drm_dp_mst_topology.c
- drivers/gpu/drm/i915/display/intel_dp_aux.c 1 addition, 0 deletionsdrivers/gpu/drm/i915/display/intel_dp_aux.c
- drivers/gpu/drm/msm/edp/edp.h 1 addition, 2 deletionsdrivers/gpu/drm/msm/edp/edp.h
- drivers/gpu/drm/msm/edp/edp_aux.c 3 additions, 2 deletionsdrivers/gpu/drm/msm/edp/edp_aux.c
- drivers/gpu/drm/msm/edp/edp_ctrl.c 1 addition, 1 deletiondrivers/gpu/drm/msm/edp/edp_ctrl.c
- drivers/gpu/drm/nouveau/nouveau_connector.c 1 addition, 0 deletionsdrivers/gpu/drm/nouveau/nouveau_connector.c
- drivers/gpu/drm/radeon/atombios_dp.c 1 addition, 0 deletionsdrivers/gpu/drm/radeon/atombios_dp.c
- drivers/gpu/drm/tegra/dpaux.c 1 addition, 0 deletionsdrivers/gpu/drm/tegra/dpaux.c
- drivers/gpu/drm/xlnx/zynqmp_dp.c 1 addition, 0 deletionsdrivers/gpu/drm/xlnx/zynqmp_dp.c
- include/drm/drm_dp_helper.h 8 additions, 1 deletioninclude/drm/drm_dp_helper.h
Please register or sign in to comment