]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/panel-edp: Fix variable typo when saving hpd absent delay from DT
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Tue, 19 Jul 2022 20:38:56 +0000 (16:38 -0400)
committerDouglas Anderson <dianders@chromium.org>
Tue, 19 Jul 2022 22:47:47 +0000 (15:47 -0700)
The value read from the "hpd-absent-delay-ms" property in DT was being
saved to the wrong variable, overriding the hpd_reliable delay. Fix the
typo.

Fixes: d1bda10e3c14 ("drm/panel-edp: Implement generic "edp-panel"s probed by EDID")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220719203857.1488831-4-nfraprado@collabora.com
drivers/gpu/drm/panel/panel-edp.c

index c96014464355c3e26a18039a6ed88df6d9274eea..a189982601a48ac753b7ebabaa74cd6b180c7dfb 100644 (file)
@@ -713,7 +713,7 @@ static int generic_edp_panel_probe(struct device *dev, struct panel_edp *panel)
        of_property_read_u32(dev->of_node, "hpd-reliable-delay-ms", &reliable_ms);
        desc->delay.hpd_reliable = reliable_ms;
        of_property_read_u32(dev->of_node, "hpd-absent-delay-ms", &absent_ms);
-       desc->delay.hpd_reliable = absent_ms;
+       desc->delay.hpd_absent = absent_ms;
 
        /* Power the panel on so we can read the EDID */
        ret = pm_runtime_get_sync(dev);