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)
commita64ad9c3e4a53257a13aefe33741aad46e7b34de
treec124c53f3fe687966520cf9cfe0c56943879670e
parentc46a4cc1403ef3fe3583bb3763ab7ed74f58780a
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