* [PATCH] Increase a timeout, so that bad scheduling does not accidentially cause a timeout.
@ 2011-05-23 14:22 Hans Petter Selasky
2011-06-01 20:11 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 2+ messages in thread
From: Hans Petter Selasky @ 2011-05-23 14:22 UTC (permalink / raw)
To: linux-media; +Cc: Mauro Carvalho Chehab
[-- Attachment #1: Type: text/plain, Size: 6 bytes --]
--HPS
[-- Attachment #2: dvb-usb-0015.patch --]
[-- Type: text/x-patch, Size: 1095 bytes --]
From 18faaafc9cbbe478bb49023bbeae490149048560 Mon Sep 17 00:00:00 2001
From: Hans Petter Selasky <hselasky@c2i.net>
Date: Mon, 23 May 2011 16:21:47 +0200
Subject: [PATCH] Increase a timeout, so that bad scheduling does not accidentially cause a timeout.
Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
---
drivers/media/dvb/frontends/stb0899_drv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c
index 37a222d..ddb9141 100644
--- a/drivers/media/dvb/frontends/stb0899_drv.c
+++ b/drivers/media/dvb/frontends/stb0899_drv.c
@@ -706,7 +706,7 @@ static int stb0899_send_diseqc_msg(struct dvb_frontend *fe, struct dvb_diseqc_ma
stb0899_write_reg(state, STB0899_DISCNTRL1, reg);
for (i = 0; i < cmd->msg_len; i++) {
/* wait for FIFO empty */
- if (stb0899_wait_diseqc_fifo_empty(state, 10) < 0)
+ if (stb0899_wait_diseqc_fifo_empty(state, 100) < 0)
return -ETIMEDOUT;
stb0899_write_reg(state, STB0899_DISFIFO, cmd->msg[i]);
--
1.7.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Increase a timeout, so that bad scheduling does not accidentially cause a timeout.
2011-05-23 14:22 [PATCH] Increase a timeout, so that bad scheduling does not accidentially cause a timeout Hans Petter Selasky
@ 2011-06-01 20:11 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2011-06-01 20:11 UTC (permalink / raw)
To: Manu Abraham; +Cc: Hans Petter Selasky, linux-media
Manu,
Another patch for your review.
Cheers,
Mauro
Em 23-05-2011 11:22, Hans Petter Selasky escreveu:
> --HPS
>
>
> dvb-usb-0015.patch
>
>
> From 18faaafc9cbbe478bb49023bbeae490149048560 Mon Sep 17 00:00:00 2001
> From: Hans Petter Selasky <hselasky@c2i.net>
> Date: Mon, 23 May 2011 16:21:47 +0200
> Subject: [PATCH] Increase a timeout, so that bad scheduling does not accidentially cause a timeout.
>
> Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
> ---
> drivers/media/dvb/frontends/stb0899_drv.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c
> index 37a222d..ddb9141 100644
> --- a/drivers/media/dvb/frontends/stb0899_drv.c
> +++ b/drivers/media/dvb/frontends/stb0899_drv.c
> @@ -706,7 +706,7 @@ static int stb0899_send_diseqc_msg(struct dvb_frontend *fe, struct dvb_diseqc_ma
> stb0899_write_reg(state, STB0899_DISCNTRL1, reg);
> for (i = 0; i < cmd->msg_len; i++) {
> /* wait for FIFO empty */
> - if (stb0899_wait_diseqc_fifo_empty(state, 10) < 0)
> + if (stb0899_wait_diseqc_fifo_empty(state, 100) < 0)
> return -ETIMEDOUT;
>
> stb0899_write_reg(state, STB0899_DISFIFO, cmd->msg[i]);
> -- 1.7.1.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-01 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 14:22 [PATCH] Increase a timeout, so that bad scheduling does not accidentially cause a timeout Hans Petter Selasky
2011-06-01 20:11 ` Mauro Carvalho Chehab
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.