From 717a1066fcaa19eecb124fa58510e02dee4b4456 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Thu, 14 Apr 2005 07:55:31 +0000 Subject: on fast (or slow) machines it is important for some devices to delay the actual read on a read operation --- linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c') diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c index 80b3ff91f..e5bff4157 100644 --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-urb.c @@ -39,6 +39,9 @@ int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, /* an answer is expected, and no error before */ if (!ret && rbuf && rlen) { + if (d->props.rw_delay_ms) + msleep(d->props.rw_delay_ms); + ret = usb_bulk_msg(d->udev,usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint),rbuf,rlen,&actlen, 2*HZ); -- cgit v1.2.3