drm/i915/display/vlv_dsi: Move panel_pwr_cycle_delay to next panel-on
authorHans de Goede <hdegoede@redhat.com>
Thu, 25 Mar 2021 11:48:23 +0000 (12:48 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 12 Apr 2021 08:47:35 +0000 (10:47 +0200)
commitc87eba80470e4103f4c2cbb915e297e5242f85fa
treeac463264778ed24874a7bb3090ca014eec65e15f
parent2878b29fc25a0dac0e1c6c94177f07c7f94240f0
drm/i915/display/vlv_dsi: Move panel_pwr_cycle_delay to next panel-on

Instead of sleeping panel_pwr_cycle_delay ms when turning the panel off,
record the time it is turned off and if necessary wait any (remaining)
time when the panel is turned on again.

Also sleep the remaining time on shutdown, because on reboot the
GOP will immediately turn on the panel again.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210325114823.44922-2-hdegoede@redhat.com
drivers/gpu/drm/i915/display/intel_dsi.h
drivers/gpu/drm/i915/display/vlv_dsi.c