drm/panel-simple: Don't wait longer for HPD than hpd_absent_delay
authorDouglas Anderson <dianders@chromium.org>
Fri, 15 Jan 2021 22:44:17 +0000 (14:44 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Mar 2021 16:14:40 +0000 (17:14 +0100)
commit6ec52621e77c81079e7d3858cca00344d4266a89
treed43c5308e6b2c2c3db4d001216c3637dd156de6f
parent5e7222a3674ea7422370779884dd53aabe9e4a9d
drm/panel-simple: Don't wait longer for HPD than hpd_absent_delay

If a panel has an hpd_absent_delay specified then we know exactly how
long the maximum time is before HPD must be asserted.  That means we
can use it as a timeout for polling the HPD pin instead of using an
arbitrary timeout.  This is especially useful for dealing with panels
that periodically fail to power on and need to be retried.  We can
detect the problem sooner.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210115144345.v2.2.I183b1817610d7a82fdd3bc852e96d2985df9623f@changeid
drivers/gpu/drm/panel/panel-simple.c