mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 17:44:14 +08:00
drm/panel-edp: Fix variable typo when saving hpd absent delay from DT
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: 5540cf8f3e
("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
This commit is contained in:
parent
dbd0da2453
commit
ef2084a838
@ -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);
|
of_property_read_u32(dev->of_node, "hpd-reliable-delay-ms", &reliable_ms);
|
||||||
desc->delay.hpd_reliable = reliable_ms;
|
desc->delay.hpd_reliable = reliable_ms;
|
||||||
of_property_read_u32(dev->of_node, "hpd-absent-delay-ms", &absent_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 */
|
/* Power the panel on so we can read the EDID */
|
||||||
ret = pm_runtime_get_sync(dev);
|
ret = pm_runtime_get_sync(dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user