Skip to contentSkip to conversation

drm/edid: Simplify min_pixel_clock_rate calculation

PATCH New Jonathan Cavitt 1 participant 1 message Apr 28

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/edid: Simplify min_pixel_clock_rate calculation

In calculate_ovt_min_htotal, we compute min_pixel_clock_rate as max_vrate * min_htotal * min_vtotal. However, we already calculated the value of max_vrate * min_vtotal as min_line_rate. So, just use that as part of the calculation.

Cc Maarten Lankhorst <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Thomas Zimmermann <[email protected]>
Cc David Airlie <[email protected]>
Cc Simona Vetter <[email protected]>
---
 drivers/gpu/drm/drm_edid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_edid.c +1 -1
index 63814af7f1c1..9f9c9c65296f 100644
@@ -5513,7 +5513,7 @@ static u32 calculate_ovt_min_htotal(const struct cta_rid *rid,
 
 	min_htotal = rid->hactive + max(OVT_MIN_HBLANK_444, *min_hblank);
 
-	min_pixel_clock_rate = max_vrate * min_htotal * min_vtotal;
+	min_pixel_clock_rate = min_line_rate * min_htotal;
 
 	htotal_granularity_chunk =
 		roundup_pow_of_two(DIV64_U64_ROUND_UP(min_pixel_clock_rate,
Signature · 1 line
2.53.0