summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge/parade-ps8640.c
diff options
context:
space:
mode:
authorPin-yen Lin <treapking@chromium.org>2023-03-31 11:02:04 +0800
committerRobert Foss <rfoss@kernel.org>2023-04-05 14:42:12 +0200
commit4224011374d1b4228a59b73149320c61eeb700b3 (patch)
tree25838131af2c071972a74abe227ebad7b2b1075e /drivers/gpu/drm/bridge/parade-ps8640.c
parentca161b259cc84fe1f4a2ce4c73c3832cf6f713f1 (diff)
downloadlinux-stable-4224011374d1b4228a59b73149320c61eeb700b3.tar.gz
linux-stable-4224011374d1b4228a59b73149320c61eeb700b3.tar.bz2
linux-stable-4224011374d1b4228a59b73149320c61eeb700b3.zip
drm/bridge: ps8640: Use constant sleep time for polling hpd
The default hpd_wait_us in panel_edp.c is 2 seconds. This makes the sleep time in the polling of _ps8640_wait_hpd_asserted become 200ms. Change it to a constant 20ms to speed up the function. Signed-off-by: Pin-yen Lin <treapking@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Robert Foss <rfoss@kernel.org> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230331030204.1179524-1-treapking@chromium.org
Diffstat (limited to 'drivers/gpu/drm/bridge/parade-ps8640.c')
-rw-r--r--drivers/gpu/drm/bridge/parade-ps8640.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm/bridge/parade-ps8640.c
index b823e55650b1..c3eb45179405 100644
--- a/drivers/gpu/drm/bridge/parade-ps8640.c
+++ b/drivers/gpu/drm/bridge/parade-ps8640.c
@@ -184,7 +184,7 @@ static int _ps8640_wait_hpd_asserted(struct ps8640 *ps_bridge, unsigned long wai
* actually connected to GPIO9).
*/
ret = regmap_read_poll_timeout(map, PAGE2_GPIO_H, status,
- status & PS_GPIO9, wait_us / 10, wait_us);
+ status & PS_GPIO9, 20000, wait_us);
/*
* The first time we see HPD go high after a reset we delay an extra