29 lines
992 B
Diff
29 lines
992 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Koumes <koumes@centrum.cz>
|
|
Date: Sat, 1 Jun 2019 21:20:26 +0000
|
|
Subject: si2168: fix cmd timeout
|
|
|
|
Some demuxer si2168 commands may take 130-140 ms.
|
|
(DVB-T/T2 tuner MyGica T230C v2).
|
|
Details: https://github.com/CoreELEC/CoreELEC/pull/208
|
|
---
|
|
drivers/media/dvb-frontends/si2168.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
|
|
index 2a0e108c5eb0..e7bfb8096bf9 100644
|
|
--- a/drivers/media/dvb-frontends/si2168.c
|
|
+++ b/drivers/media/dvb-frontends/si2168.c
|
|
@@ -40,7 +40,7 @@ static int si2168_cmd_execute(struct i2c_client *client, struct si2168_cmd *cmd)
|
|
|
|
if (cmd->rlen) {
|
|
/* wait cmd execution terminate */
|
|
- #define TIMEOUT 70
|
|
+ #define TIMEOUT 200
|
|
timeout = jiffies + msecs_to_jiffies(TIMEOUT);
|
|
while (!time_after(jiffies, timeout)) {
|
|
ret = i2c_master_recv(client, cmd->args, cmd->rlen);
|
|
--
|
|
Armbian
|
|
|