diff options
| author | Cristian Ciocaltea <cristian.ciocaltea@collabora.com> | 2026-06-01 19:13:44 +0300 |
|---|---|---|
| committer | Heiko Stuebner <heiko@sntech.de> | 2026-06-02 21:27:59 +0200 |
| commit | ed04e8e2307f35b3d8d49a554faf5e72d3d224e6 (patch) | |
| tree | 978cac3ec7b8a1a589bcaf6873080bbd2703d039 /include | |
| parent | 28e670a0885cf2501fd51189ce7b6f5b7cacebf9 (diff) | |
| download | linux-ed04e8e2307f35b3d8d49a554faf5e72d3d224e6.tar.gz linux-ed04e8e2307f35b3d8d49a554faf5e72d3d224e6.zip | |
drm/bridge: synopsys: dw-dp: Support unregistering the AUX channel
The DisplayPort AUX channel gets initialized and registered during
dw_dp_bind(), but it is never unregistered, which may lead to resource
leaks and/or use-after-free.
Add the missing dw_dp_unbind() function to allow the users of the
library to handle the required cleanup, i.e. unregister the AUX adapter.
Fixes: 86eecc3a9c2e ("drm/bridge: synopsys: Add DW DPTX Controller support library")
Reviewed-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20260601-drm-rk-fixes-v4-1-c3f3f123e1da@collabora.com
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/bridge/dw_dp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/bridge/dw_dp.h b/include/drm/bridge/dw_dp.h index 25363541e69d..22105c3e8e4d 100644 --- a/include/drm/bridge/dw_dp.h +++ b/include/drm/bridge/dw_dp.h @@ -24,4 +24,5 @@ struct dw_dp_plat_data { struct dw_dp *dw_dp_bind(struct device *dev, struct drm_encoder *encoder, const struct dw_dp_plat_data *plat_data); +void dw_dp_unbind(struct dw_dp *dp); #endif /* __DW_DP__ */ |
