The on-chip MCU may take longer than 100ms to respond on some hardware
variants or slower I2C buses, causing spurious -ETIMEDOUT errors during
normal operation. Double the poll timeout from 100ms to 200ms to improve
reliability without changing the poll interval.

Signed-off-by: Mohit Dsor <[email protected]>
---
 drivers/gpu/drm/bridge/lontium-lt9611c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/bridge/lontium-lt9611c.c 
b/drivers/gpu/drm/bridge/lontium-lt9611c.c
index cb584855fd8f..b0402726367e 100644
--- a/drivers/gpu/drm/bridge/lontium-lt9611c.c
+++ b/drivers/gpu/drm/bridge/lontium-lt9611c.c
@@ -97,7 +97,7 @@ static int lt9611c_read_write_flow(struct lt9611c *lt9611c, 
u8 *params,
        regmap_write(lt9611c->regmap, 0xe0de, 0x01);
 
        ret = regmap_read_poll_timeout(lt9611c->regmap, 0xe0ae, temp,
-                                      temp == 0x01, 1000, 100 * 1000);
+                                      temp == 0x01, 1000, 200 * 1000);
        if (ret)
                return -ETIMEDOUT;
 
@@ -107,7 +107,7 @@ static int lt9611c_read_write_flow(struct lt9611c *lt9611c, 
u8 *params,
        regmap_write(lt9611c->regmap, 0xe0de, 0x02);
 
        ret = regmap_read_poll_timeout(lt9611c->regmap, 0xe0ae, temp,
-                                      temp == 0x02, 1000, 100 * 1000);
+                                      temp == 0x02, 1000, 200 * 1000);
        if (ret)
                return -ETIMEDOUT;
 

-- 
2.34.1

Reply via email to