mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
drm/ingenic: Fix pixclock rate for 24-bit serial panels
When using a 24-bit panel on a 8-bit serial bus, the pixel clock
requested by the panel has to be multiplied by 3, since the subpixels
are shifted sequentially.
The code (in ingenic_drm_encoder_atomic_check) already computed
crtc_state->adjusted_mode->crtc_clock accordingly, but clk_set_rate()
used crtc_state->adjusted_mode->clock instead.
Fixes: 28ab7d35b6 ("drm/ingenic: Properly compute timings when using a 3x8-bit panel")
Cc: [email protected] # v5.10
Signed-off-by: Paul Cercueil <[email protected]>
Tested-by: H. Nikolaus Schaller <[email protected]> # CI20/jz4780 (HDMI) and Alpha400/jz4730 (LCD)
Acked-by: Thomas Zimmermann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
1 file changed
+1
-1
@@ -342,7 +342,7 @@ static void ingenic_drm_crtc_atomic_flush(struct drm_crtc *crtc,
|
||||
if (priv->update_clk_rate) {
|
||||
mutex_lock(&priv->clk_mutex);
|
||||
clk_set_rate(priv->pix_clk,
|
||||
crtc_state->adjusted_mode.clock * 1000);
|
||||
crtc_state->adjusted_mode.crtc_clock * 1000);
|
||||
priv->update_clk_rate = false;
|
||||
mutex_unlock(&priv->clk_mutex);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user