linux-stable/include/drm/bridge
Johan Hovold e5ca263508 drm/bridge: aux-hpd: separate allocation and registration
Combining allocation and registration is an anti-pattern that should be
avoided. Add two new functions for allocating and registering an dp-hpd
bridge with a proper 'devm' prefix so that it is clear that these are
device managed interfaces.

	devm_drm_dp_hpd_bridge_alloc()
	devm_drm_dp_hpd_bridge_add()

The new interface will be used to fix a use-after-free bug in the
Qualcomm PMIC GLINK driver and may prevent similar issues from being
introduced elsewhere.

The existing drm_dp_hpd_bridge_register() is reimplemented using the
above and left in place for now.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240217150228.5788-3-johan+linaro@kernel.org
2024-02-23 17:00:56 +02:00
..
analogix_dp.h drm/bridge: analogix_dp: Split bind() into probe() and real bind() 2020-04-09 10:29:35 +02:00
aux-bridge.h drm/bridge: aux-hpd: separate allocation and registration 2024-02-23 17:00:56 +02:00
dw_hdmi.h drm/bridge: dw-hdmi: change YUV420 selection logic at clock setup 2023-06-27 09:51:31 +02:00
dw_mipi_dsi.h drm/bridge: synopsys: dw-mipi-dsi: Add mode fixup support 2023-10-16 11:38:42 +02:00
mhl.h drm/bridge/mhl.h: Replace zero-length array with flexible-array member 2020-03-06 11:52:01 +01:00
samsung-dsim.h drm/bridge: samsung-dsim: update PLL reference clock 2023-10-09 11:06:22 +02:00