Skip to content
Permalink
Browse files

dvb-latest: fix si2168 cmd timeout

  • Loading branch information...
Koumes committed Jun 7, 2019
1 parent 40d89ff commit 85f52ddd8a5d845d513ef6df6b2fbd443957060d
@@ -0,0 +1,17 @@
fix si2168 cmd timeout

Some Si2168 demodulator commands may take 130-140 ms
(DVB-T/T2 tuner MyGica T230C v2).
Details: https://github.com/CoreELEC/CoreELEC/pull/208

--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -46,7 +46,7 @@ static int si2168_cmd_execute_unlocked(s

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);

0 comments on commit 85f52dd

Please sign in to comment.
You can’t perform that action at this time.