]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb73433233af3816fc1925a7df88d0cd66549cf6
treed43c5308e6b2c2c3db4d001216c3637dd156de6f
parentc3658a71b66a8ae4cad0a709540b7ffa6b4efb27
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