diff mbox

Si2168: increase timeout to fix firmware loading

Message ID 1418027444-4718-1-git-send-email-gtmkramer@xs4all.nl (mailing list archive)
State New, archived
Headers show

Commit Message

Jurgen Kramer Dec. 8, 2014, 8:30 a.m. UTC
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>
---
 drivers/media/dvb-frontends/si2168.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Antti Palosaari Dec. 8, 2014, 5:52 p.m. UTC | #1
On 12/08/2014 10:30 AM, Jurgen Kramer wrote:
> 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>
Cc: <stable@vger.kernel.org> # v3.17+

That must go stable 3.17.

Antti

> ---
>   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 ce9ab44..d2f1a3e 100644
> --- a/drivers/media/dvb-frontends/si2168.c
> +++ b/drivers/media/dvb-frontends/si2168.c
> @@ -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);
>
Antti Palosaari Dec. 14, 2014, 11:29 a.m. UTC | #2
On 12/08/2014 07:52 PM, Antti Palosaari wrote:
> On 12/08/2014 10:30 AM, Jurgen Kramer wrote:
>> 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>
> Cc: <stable@vger.kernel.org> # v3.17+

Cc: <stable@vger.kernel.org> # v3.16+

Changed from stable 3.17+ to 3.16+ as I found that PCTV 292e timeouts 
too when tuning DVB-T2, not always, but from time to time...

Antti

>
> That must go stable 3.17.
>
> Antti
>
>> ---
>>   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 ce9ab44..d2f1a3e 100644
>> --- a/drivers/media/dvb-frontends/si2168.c
>> +++ b/drivers/media/dvb-frontends/si2168.c
>> @@ -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);
>>
>
Antti Palosaari Jan. 22, 2015, 10:04 a.m. UTC | #3
I will make pull request for that as that is still on patchwork.... :(

Antti

On 12/14/2014 01:29 PM, Antti Palosaari wrote:
> On 12/08/2014 07:52 PM, Antti Palosaari wrote:
>> On 12/08/2014 10:30 AM, Jurgen Kramer wrote:
>>> 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>
>> Cc: <stable@vger.kernel.org> # v3.17+
>
> Cc: <stable@vger.kernel.org> # v3.16+
>
> Changed from stable 3.17+ to 3.16+ as I found that PCTV 292e timeouts
> too when tuning DVB-T2, not always, but from time to time...
>
> Antti
>
>>
>> That must go stable 3.17.
>>
>> Antti
>>
>>> ---
>>>   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 ce9ab44..d2f1a3e 100644
>>> --- a/drivers/media/dvb-frontends/si2168.c
>>> +++ b/drivers/media/dvb-frontends/si2168.c
>>> @@ -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);
>>>
>>
>
Jurgen Kramer Jan. 22, 2015, 1:37 p.m. UTC | #4
On Thu, 2015-01-22 at 12:04 +0200, Antti Palosaari wrote:
> I will make pull request for that as that is still on patchwork.... :(

Thanks, I was about to send in a resend.

Jurgen

> Antti
> 
> On 12/14/2014 01:29 PM, Antti Palosaari wrote:
> > On 12/08/2014 07:52 PM, Antti Palosaari wrote:
> >> On 12/08/2014 10:30 AM, Jurgen Kramer wrote:
> >>> 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>
> >> Cc: <stable@vger.kernel.org> # v3.17+
> >
> > Cc: <stable@vger.kernel.org> # v3.16+
> >
> > Changed from stable 3.17+ to 3.16+ as I found that PCTV 292e timeouts
> > too when tuning DVB-T2, not always, but from time to time...
> >
> > Antti
> >
> >>
> >> That must go stable 3.17.
> >>
> >> Antti
> >>
> >>> ---
> >>>   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 ce9ab44..d2f1a3e 100644
> >>> --- a/drivers/media/dvb-frontends/si2168.c
> >>> +++ b/drivers/media/dvb-frontends/si2168.c
> >>> @@ -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);
> >>>
> >>
> >
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index ce9ab44..d2f1a3e 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -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);