Skip to content

Commit

Permalink
V4L/DVB (9664): af9015: don't reconnect device in USB-bus
Browse files Browse the repository at this point in the history
Don't reconnect device in the USB-bus. Reconnect command was not
executed every time by device firmware and that causes harm.
Reconnection is not needed so remove it.

Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jose Alberto Reguero authored and Mauro Carvalho Chehab committed Nov 20, 2008
1 parent f2a2e49 commit cce2571
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/media/dvb/dvb-usb/af9015.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,12 +681,6 @@ static int af9015_download_firmware(struct usb_device *udev,
goto error;
}

/* firmware is running, reconnect device in the usb bus */
req.cmd = RECONNECT_USB;
ret = af9015_rw_udev(udev, &req);
if (ret)
err("reconnect failed: %d", ret);

error:
return ret;
}
Expand Down Expand Up @@ -1208,6 +1202,7 @@ static struct dvb_usb_device_properties af9015_properties[] = {
.usb_ctrl = DEVICE_SPECIFIC,
.download_firmware = af9015_download_firmware,
.firmware = "dvb-usb-af9015.fw",
.no_reconnect = 1,

.size_of_priv = sizeof(struct af9015_state), \

Expand Down Expand Up @@ -1306,6 +1301,7 @@ static struct dvb_usb_device_properties af9015_properties[] = {
.usb_ctrl = DEVICE_SPECIFIC,
.download_firmware = af9015_download_firmware,
.firmware = "dvb-usb-af9015.fw",
.no_reconnect = 1,

.size_of_priv = sizeof(struct af9015_state), \

Expand Down

0 comments on commit cce2571

Please sign in to comment.