drm/i915/hotplug: refactor hotplug init slightly
authorJani Nikula <jani.nikula@intel.com>
Fri, 16 Sep 2022 13:06:34 +0000 (16:06 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 19 Sep 2022 09:32:49 +0000 (12:32 +0300)
commitdd890d428fe157f661e19e17c12349c785a97d4b
treeb6541cf77564290672bd382fd4d43a535b75000b
parent1bed8b07342069ebfbab6794e5ce3084c3eb9bc8
drm/i915/hotplug: refactor hotplug init slightly

Rename intel_hpd_init_work() to the more generic intel_hpd_init_early(),
and move the hotplug storm initialization there. This lets us move the
HPD_STORM_DEFAULT_THRESHOLD macro to intel_hotplug.c too.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220916130634.3781122-2-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_hotplug.c
drivers/gpu/drm/i915/display/intel_hotplug.h
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c