linux-stable/include/drm
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
..
bridge drm/bridge: aux-hpd: separate allocation and registration 2024-02-23 17:00:56 +02:00
display drm/display/dp: Add the remaining Square PHY patterns DPCD register definitions 2023-12-04 12:33:23 +02:00
i2c
ttm mm, treewide: introduce NR_PAGE_ORDERS 2024-01-08 15:27:15 -08:00
amd_asic_type.h
drm_accel.h
drm_aperture.h
drm_atomic.h
drm_atomic_helper.h drm-misc-next for $kernel-version: 2023-12-19 17:07:32 +10:00
drm_atomic_state_helper.h
drm_atomic_uapi.h
drm_audio_component.h
drm_auth.h drm: Remove source code for non-KMS drivers 2023-12-06 10:08:37 +01:00
drm_blend.h Revert "drm: Introduce pixel_source DRM plane property" 2023-12-04 21:33:10 +02:00
drm_bridge.h drm/bridge: migrate bridge_chains to per-encoder file 2023-12-04 16:07:29 +02:00
drm_bridge_connector.h
drm_buddy.h
drm_cache.h
drm_client.h
drm_color_mgmt.h drm: using mul_u32_u32() requires linux/math64.h 2023-12-19 15:29:17 +02:00
drm_connector.h
drm_crtc.h
drm_crtc_helper.h
drm_damage_helper.h
drm_debugfs.h
drm_debugfs_crc.h
drm_device.h drm: Remove source code for non-KMS drivers 2023-12-06 10:08:37 +01:00
drm_displayid.h
drm_drv.h drm: Remove source code for non-KMS drivers 2023-12-06 10:08:37 +01:00
drm_edid.h drm/edid/firmware: drop drm_kms_helper.edid_firmware backward compat 2023-11-21 12:22:48 +02:00
drm_eld.h
drm_encoder.h drm/encoder: register per-encoder debugfs dir 2023-12-04 16:07:29 +02:00
drm_encoder_slave.h
drm_exec.h drm/exec: Pass in initial # of objects 2023-12-10 10:38:47 -08:00
drm_fb_dma_helper.h
drm_fb_helper.h
drm_fbdev_dma.h
drm_fbdev_generic.h
drm_file.h drm: Remove source code for non-KMS drivers 2023-12-06 10:08:37 +01:00
drm_fixed.h
drm_flip_work.h drm: Fix flip-task docs 2023-11-14 10:23:12 +01:00
drm_format_helper.h drm/format-helper: Pass format-conversion state to helpers 2023-11-14 10:16:53 +01:00
drm_fourcc.h
drm_framebuffer.h drm: Remove legacy cursor hotspot code 2023-11-24 11:58:02 +01:00
drm_gem.h
drm_gem_atomic_helper.h
drm_gem_dma_helper.h
drm_gem_framebuffer_helper.h
drm_gem_shmem_helper.h
drm_gem_ttm_helper.h
drm_gem_vram_helper.h
drm_gpuvm.h One fix for drm/plane to avoid a use-after-free and some additional 2024-01-05 10:31:54 +10:00
drm_ioctl.h drm: Remove locking for legacy ioctls and DRM_UNLOCKED 2023-12-06 10:08:32 +01:00
drm_kunit_helpers.h
drm_lease.h
drm_managed.h
drm_mipi_dbi.h drm/format-helper: Pass format-conversion state to helpers 2023-11-14 10:16:53 +01:00
drm_mipi_dsi.h drm/mipi-dsi: Fix detach call without attach 2023-12-07 09:22:47 +02:00
drm_mm.h
drm_mode_config.h
drm_mode_object.h drm/drm_mode_object: increase max objects to accommodate new color props 2023-12-13 15:09:53 -05:00
drm_modes.h
drm_modeset_helper.h
drm_modeset_helper_vtables.h drm/drm_modeset_helper_vtables.h: fix typos/spellos 2023-12-13 16:19:01 +01:00
drm_modeset_lock.h
drm_module.h
drm_of.h
drm_panel.h
drm_pciids.h
drm_plane.h drm/drm_plane: track color mgmt changes per plane 2023-12-13 15:09:53 -05:00
drm_plane_helper.h drm/plane-helper: Move drm_plane_helper_atomic_check() into udl 2023-12-06 10:35:49 +01:00
drm_prime.h Revert "drm/prime: Unexport helpers for fd/handle conversion" 2023-11-30 14:46:04 -05:00
drm_print.h drm/print: Handle NULL drm device in __drm_printk() 2023-11-19 22:14:25 -05:00
drm_privacy_screen_consumer.h
drm_privacy_screen_driver.h
drm_privacy_screen_machine.h
drm_probe_helper.h
drm_property.h drm/drm_property: make replace_property_blob_from_id a DRM helper 2023-12-13 15:09:53 -05:00
drm_rect.h
drm_self_refresh_helper.h
drm_simple_kms_helper.h
drm_suballoc.h
drm_syncobj.h
drm_sysfs.h
drm_util.h
drm_utils.h
drm_vblank.h
drm_vblank_work.h
drm_vma_manager.h
drm_writeback.h
gma_drm.h
gpu_scheduler.h drm/sched: Reverse run-queue priority enumeration 2023-11-24 23:03:53 -05:00
gud.h
i915_component.h
i915_drm.h
i915_gsc_proxy_mei_interface.h
i915_hdcp_interface.h
i915_pciids.h drm/i915: ATS-M device ID update 2023-11-21 10:10:36 -08:00
i915_pxp_tee_interface.h
intel-gtt.h
intel_lpe_audio.h
spsc_queue.h
task_barrier.h
xe_pciids.h drm/xe: Sync MTL PCI IDs with i915 2023-12-21 11:45:01 -05:00