[PATCH i-g-t 03/27] tools/intel_vbt_decode: Dump MIPI config for the correct panel

Ville Syrjala ville.syrjala at linux.intel.com
Fri Jun 7 13:57:34 UTC 2024


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Currently dump_mipi_config() just dumps the data for the same
panel index six times. Actually dump the data for each of the
six possible panels as intended.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_vbt_decode.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index 40c05fbadacb..cee1d5196a9a 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -2016,12 +2016,9 @@ static void dump_mipi_config(struct context *context,
 	const struct bdb_mipi_config *start = block_data(block);
 
 	for (int i = 0; i < ARRAY_SIZE(start->config); i++) {
-		const struct mipi_config *config =
-			&start->config[context->panel_type];
-		const struct mipi_pps_data *pps =
-			&start->pps[context->panel_type];
-		const struct edp_pwm_delays *pwm_delays =
-			&start->pwm_delays[context->panel_type];
+		const struct mipi_config *config = &start->config[i];
+		const struct mipi_pps_data *pps = &start->pps[i];
+		const struct edp_pwm_delays *pwm_delays = &start->pwm_delays[i];
 
 		if (!dump_panel(context, i))
 			continue;
-- 
2.44.2



More information about the igt-dev mailing list