[media] Si2168: increase timeout to fix firmware loading
authorJurgen Kramer <gtmkramer@xs4all.nl>
Mon, 8 Dec 2014 08:30:44 +0000 (05:30 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 26 Jan 2015 10:23:45 +0000 (08:23 -0200)
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: Jurgen Kramer <gtmkramer@xs4all.nl>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/si2168.c

index ce9ab442b4b67fee62fd0d414d01de4ad47abb1c..d2f1a3e959e7f58dd0b01136d5265c495beca93e 100644 (file)
@@ -39,7 +39,7 @@ static int si2168_cmd_execute(struct si2168 *s, struct si2168_cmd *cmd)
 
        if (cmd->rlen) {
                /* wait cmd execution terminate */
-               #define TIMEOUT 50
+               #define TIMEOUT 70
                timeout = jiffies + msecs_to_jiffies(TIMEOUT);
                while (!time_after(jiffies, timeout)) {
                        ret = i2c_master_recv(s->client, cmd->args, cmd->rlen);
This page took 0.024902 seconds and 5 git commands to generate.