diff options
author | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2019-07-17 17:43:30 -0700 |
---|---|---|
committer | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2019-07-19 16:39:19 -0700 |
commit | 74af2d2f8b4b74a06208c4d7e4dfddf1ff33fd93 (patch) | |
tree | 666fb976e34dd8fa95bb31f29631cf9d7083a5b8 /tools/intel_vbt_defs.h | |
parent | 10288a94dccead63efbd59d872c8c4ce9cf19788 (diff) |
tools/vbt_decode: Fix VBT parsing for the PSR section
A single 32-bit PSR2 training pattern field follows the sixteen element
array of PSR table entries as per VBT spec. But, we incorrectly define
this PSR2 field for each of PSR table entries. The result of this is
that the PSR1 training pattern duration for any panel_type != 0 will be
parsed incorrectly.
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools/intel_vbt_defs.h')
-rw-r--r-- | tools/intel_vbt_defs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/intel_vbt_defs.h b/tools/intel_vbt_defs.h index 89ef14ca..c903cda3 100644 --- a/tools/intel_vbt_defs.h +++ b/tools/intel_vbt_defs.h @@ -475,13 +475,13 @@ struct psr_table { /* TP wake up time in multiple of 100 */ u16 tp1_wakeup_time; u16 tp2_tp3_wakeup_time; - - /* PSR2 TP2/TP3 wakeup time for 16 panels */ - u32 psr2_tp2_tp3_wakeup_time; } __packed; struct bdb_psr { struct psr_table psr_table[16]; + + /* PSR2 TP2/TP3 wakeup time for 16 panels */ + u32 psr2_tp2_tp3_wakeup_time; } __packed; /* |