[DVB patch 2/8] usb: dont use HZ for timeouts

Johannes Stezenbach
2005-07-02T01:55:33Z

[-- Attachment #1: dvb-usb-timeout-fix.patch --]
[-- Type: text/plain, Size: 1168 bytes --]

From: Patrick Boettcher <pb@linuxtv.org>

Don't use HZ for usb-transfer-timeouts.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>

drivers/media/dvb/dvb-usb/dvb-usb-urb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.13-rc1-mm1/drivers/media/dvb/dvb-usb/dvb-usb-urb.c
===================================================================
--- linux-2.6.13-rc1-mm1.orig/drivers/media/dvb/dvb-usb/dvb-usb-urb.c 2005-07-02 03:22:09.000000000 +0200
+++ linux-2.6.13-rc1-mm1/drivers/media/dvb/dvb-usb/dvb-usb-urb.c 2005-07-02 03:22:26.000000000 +0200
@@ -29,7 +29,7 @@ int dvb_usb_generic_rw(struct dvb_usb_de

ret = usb_bulk_msg(d->udev,usb_sndbulkpipe(d->udev,
d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen,
- 2*HZ);
+ 2000);

if (ret)
err("bulk message failed: %d (%d/%d)",ret,wlen,actlen);
@@ -43,7 +43,7 @@ int dvb_usb_generic_rw(struct dvb_usb_de

ret = usb_bulk_msg(d->udev,usb_rcvbulkpipe(d->udev,
d->props.generic_bulk_ctrl_endpoint),rbuf,rlen,&actlen,
- 2*HZ);
+ 2000);

if (ret)
err("recv bulk message failed: %d",ret);

--