]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/i915/bios: Remove unnecessary checks of PSR idle frames in VBT binary
authorJouni Högander <jouni.hogander@intel.com>
Mon, 1 Sep 2025 10:10:33 +0000 (13:10 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Wed, 3 Sep 2025 10:40:39 +0000 (13:40 +0300)
PSR idle frames in VBT binary is a 4 bits wide bitfield. Checking if it's
below 0 or over 15 doesn't make sense. Remove these checks.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20250901101033.4176277-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_bios.c

index 7d7193a05d8860b6c9650bbd4e7ac8d14502f6b9..3596dce84c2863b85dd7c3e3baf0364e560b2777 100644 (file)
@@ -1567,10 +1567,7 @@ parse_psr(struct intel_display *display,
 
        panel->vbt.psr.full_link = psr_table->full_link;
        panel->vbt.psr.require_aux_wakeup = psr_table->require_aux_to_wakeup;
-
-       /* Allowed VBT values goes from 0 to 15 */
-       panel->vbt.psr.idle_frames = psr_table->idle_frames < 0 ? 0 :
-               psr_table->idle_frames > 15 ? 15 : psr_table->idle_frames;
+       panel->vbt.psr.idle_frames = psr_table->idle_frames;
 
        /*
         * New psr options 0=500us, 1=100us, 2=2500us, 3=0us