mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 05:36:35 +07:00
10a2310265
To implement hotplug detection in a race-free manner, drivers must call drm_kms_helper_poll_init() before hotplug events can be triggered. Such events can be triggered right after any of the encoders or connectors are initialized. At the same time, if the drm_fb_helper_hotplug_event() helper is used by a driver, then the poll helper requires some parts of the FB helper to be initialized to prevent a crash. At the same time, drm_fb_helper_init() requires information that is not necessarily available at such an early stage (number of CRTCs and connectors), so it cannot be used yet. Add a new helper, drm_fb_helper_prepare(), that initializes the bare minimum needed to allow drm_kms_helper_poll_init() to execute and any subsequent hotplug events to be processed properly. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Dave Airlie <airlied@redhat.com> |
||
---|---|---|
.. | ||
accel_2d.c | ||
backlight.c | ||
blitter.c | ||
blitter.h | ||
cdv_device.c | ||
cdv_device.h | ||
cdv_intel_crt.c | ||
cdv_intel_display.c | ||
cdv_intel_dp.c | ||
cdv_intel_hdmi.c | ||
cdv_intel_lvds.c | ||
framebuffer.c | ||
framebuffer.h | ||
gem.c | ||
gem.h | ||
gma_device.c | ||
gma_device.h | ||
gma_display.c | ||
gma_display.h | ||
gtt.c | ||
gtt.h | ||
intel_bios.c | ||
intel_bios.h | ||
intel_gmbus.c | ||
intel_i2c.c | ||
Kconfig | ||
Makefile | ||
mdfld_device.c | ||
mdfld_dsi_dpi.c | ||
mdfld_dsi_dpi.h | ||
mdfld_dsi_output.c | ||
mdfld_dsi_output.h | ||
mdfld_dsi_pkg_sender.c | ||
mdfld_dsi_pkg_sender.h | ||
mdfld_intel_display.c | ||
mdfld_output.c | ||
mdfld_output.h | ||
mdfld_tmd_vid.c | ||
mdfld_tpo_vid.c | ||
mid_bios.c | ||
mid_bios.h | ||
mmu.c | ||
mmu.h | ||
oaktrail_crtc.c | ||
oaktrail_device.c | ||
oaktrail_hdmi_i2c.c | ||
oaktrail_hdmi.c | ||
oaktrail_lvds.c | ||
oaktrail.h | ||
opregion.c | ||
opregion.h | ||
power.c | ||
power.h | ||
psb_device.c | ||
psb_device.h | ||
psb_drv.c | ||
psb_drv.h | ||
psb_intel_display.c | ||
psb_intel_drv.h | ||
psb_intel_lvds.c | ||
psb_intel_modes.c | ||
psb_intel_reg.h | ||
psb_intel_sdvo_regs.h | ||
psb_intel_sdvo.c | ||
psb_irq.c | ||
psb_irq.h | ||
psb_lid.c | ||
psb_reg.h | ||
tc35876x-dsi-lvds.c | ||
tc35876x-dsi-lvds.h |