]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcda613220fad94c52f3dfc1e9f7e12fe8ceafdd4
treeac463264778ed24874a7bb3090ca014eec65e15f
parent380bf662f6ee1feaea146d3e50bd00e0f73e49a6
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