]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel-edp: Fix "prepare_to_enable" if panel doesn't handle HPD
authorDouglas Anderson <dianders@chromium.org>
Tue, 14 Sep 2021 20:22:00 +0000 (13:22 -0700)
committerDouglas Anderson <dianders@chromium.org>
Mon, 20 Sep 2021 16:24:22 +0000 (09:24 -0700)
commitfcd16f7a04f45b40eaecfffa12081132592275ac
treec124c53f3fe687966520cf9cfe0c56943879670e
parentc317a83a2b4f748af36270c19bf549caaedb6b06
drm/panel-edp: Fix "prepare_to_enable" if panel doesn't handle HPD

While cleaning up the descriptions of the delay for eDP panels I
realized that we'd have a bug if any panels need the
"prepare_to_enable" but HPD handling isn't happening in the panel
driver. Let's put in a stopgap to at least make us not violate
timings. This is not perfectly optimal but trying to do better is
hard. At the moment only 2 panels specify this delay and only 30 ms is
at stake. These panels are also currently hooked up with "hpd-gpios"
so effectively this "fix" is just a theoretical fix and won't actually
do anything for any devices currently supported in mainline.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210914132020.v5.13.Ia8288d36df4b12770af59ae3ff73ef7e08fb4e2e@changeid
drivers/gpu/drm/panel/panel-edp.c