All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2] Si2168: increase timeout to fix firmware loading
@ 2015-02-26 21:41 Antti Palosaari
  2015-03-03 14:11 ` Luis Henriques
  0 siblings, 1 reply; 2+ messages in thread
From: Antti Palosaari @ 2015-02-26 21:41 UTC (permalink / raw)
  To: linux-media; +Cc: Jurgen Kramer, stable, Antti Palosaari

From: Jurgen Kramer <gtmkramer@xs4all.nl>

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.

Cc: <stable@vger.kernel.org> # v3.16+
Signed-off-by: Jurgen Kramer <gtmkramer@xs4all.nl>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Antti Palosaari <crope@iki.fi>
---
Changes since v1:
 * I added my SOB

Patch for stable 3.16+

That patch is already applied to master as commit 551c33e729f654ecfaed00ad399f5d2a631b72cb
There was some mistake and Cc stable tag I added to patchwork [1] was lost.

[1] https://patchwork.linuxtv.org/patch/27382/
---
 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 2e3cdcf..fbc1fa8 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);
-- 
http://palosaari.fi/


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCHv2] Si2168: increase timeout to fix firmware loading
  2015-02-26 21:41 [PATCHv2] Si2168: increase timeout to fix firmware loading Antti Palosaari
@ 2015-03-03 14:11 ` Luis Henriques
  0 siblings, 0 replies; 2+ messages in thread
From: Luis Henriques @ 2015-03-03 14:11 UTC (permalink / raw)
  To: Antti Palosaari; +Cc: linux-media, Jurgen Kramer, stable

On Thu, Feb 26, 2015 at 11:41:54PM +0200, Antti Palosaari wrote:
> From: Jurgen Kramer <gtmkramer@xs4all.nl>
> 
> 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.
> 
> Cc: <stable@vger.kernel.org> # v3.16+
> Signed-off-by: Jurgen Kramer <gtmkramer@xs4all.nl>
> Reviewed-by: Antti Palosaari <crope@iki.fi>
> Signed-off-by: Antti Palosaari <crope@iki.fi>
> ---
> Changes since v1:
>  * I added my SOB
> 
> Patch for stable 3.16+
> 
> That patch is already applied to master as commit 551c33e729f654ecfaed00ad399f5d2a631b72cb
> There was some mistake and Cc stable tag I added to patchwork [1] was lost.
>

Thank you Antti, I'll queue this for the 3.16 kernel.

Cheers,
--
Luís

> [1] https://patchwork.linuxtv.org/patch/27382/
> ---
>  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 2e3cdcf..fbc1fa8 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);
> -- 
> http://palosaari.fi/
> 
> --
> To unsubscribe from this list: send the line "unsubscribe stable" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-03 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-26 21:41 [PATCHv2] Si2168: increase timeout to fix firmware loading Antti Palosaari
2015-03-03 14:11 ` Luis Henriques

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.