Skip to contentSkip to conversation

Increase a timeout, so that bad scheduling does not accidentially cause a timeout.

PATCH In review Hans Petter Selasky 2 participants 2 messages May 23, 2011 – Jun 1, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Increase a timeout, so that bad scheduling does not accidentially cause a timeout.

--HPS

From 18faaafc9cbbe478bb49023bbeae490149048560 Mon Sep 17 00:00:00 2001
From: Hans Petter Selasky <[email protected]>
Date: Mon, 23 May 2011 16:21:47 +0200
Subject: [PATCH] Increase a timeout, so that bad scheduling does not accidentially cause a timeout.

---
 drivers/media/dvb/frontends/stb0899_drv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/dvb/frontends/stb0899_drv.c +1 -1
index 37a222d..ddb9141 100644
@@ -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]);
Signature · 1 line
1.7.1.1
#1 lore raw

Manu,

Another patch for your review.

Cheers,
Mauro

Em 23-05-2011 11:22, Hans Petter Selasky escreveu:

Quoted 30 lines

--HPS

dvb-usb-0015.patch

From 18faaafc9cbbe478bb49023bbeae490149048560 Mon Sep 17 00:00:00 2001
From: Hans Petter Selasky <[email protected]>
Date: Mon, 23 May 2011 16:21:47 +0200
Subject: [PATCH] Increase a timeout, so that bad scheduling does not accidentially cause a timeout.

---
 drivers/media/dvb/frontends/stb0899_drv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/dvb/frontends/stb0899_drv.c +1 -2
index 37a222d..ddb9141 100644
@@ -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