Commit 551c33e7 authored by Jurgen Kramer's avatar Jurgen Kramer Committed by Mauro Carvalho Chehab

[media] Si2168: increase timeout to fix firmware loading

Increase si2168 cmd execute timeout to prevent firmware load failures. Tests
shows it takes up to 52ms to load the 'dvb-demod-si2168-a30-01.fw' firmware.
Increase timeout to a safe value of 70ms.
Signed-off-by: default avatarJurgen Kramer <gtmkramer@xs4all.nl>
Reviewed-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 92ced56d
...@@ -39,7 +39,7 @@ static int si2168_cmd_execute(struct si2168 *s, struct si2168_cmd *cmd) ...@@ -39,7 +39,7 @@ static int si2168_cmd_execute(struct si2168 *s, struct si2168_cmd *cmd)
if (cmd->rlen) { if (cmd->rlen) {
/* wait cmd execution terminate */ /* wait cmd execution terminate */
#define TIMEOUT 50 #define TIMEOUT 70
timeout = jiffies + msecs_to_jiffies(TIMEOUT); timeout = jiffies + msecs_to_jiffies(TIMEOUT);
while (!time_after(jiffies, timeout)) { while (!time_after(jiffies, timeout)) {
ret = i2c_master_recv(s->client, cmd->args, cmd->rlen); ret = i2c_master_recv(s->client, cmd->args, cmd->rlen);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment