Commit cce25710 authored by Jose Alberto Reguero's avatar Jose Alberto Reguero Committed by Mauro Carvalho Chehab

V4L/DVB (9664): af9015: don't reconnect device in USB-bus

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: default avatarJose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f2a2e491
...@@ -681,12 +681,6 @@ static int af9015_download_firmware(struct usb_device *udev, ...@@ -681,12 +681,6 @@ static int af9015_download_firmware(struct usb_device *udev,
goto error; 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: error:
return ret; return ret;
} }
...@@ -1208,6 +1202,7 @@ static struct dvb_usb_device_properties af9015_properties[] = { ...@@ -1208,6 +1202,7 @@ static struct dvb_usb_device_properties af9015_properties[] = {
.usb_ctrl = DEVICE_SPECIFIC, .usb_ctrl = DEVICE_SPECIFIC,
.download_firmware = af9015_download_firmware, .download_firmware = af9015_download_firmware,
.firmware = "dvb-usb-af9015.fw", .firmware = "dvb-usb-af9015.fw",
.no_reconnect = 1,
.size_of_priv = sizeof(struct af9015_state), \ .size_of_priv = sizeof(struct af9015_state), \
...@@ -1306,6 +1301,7 @@ static struct dvb_usb_device_properties af9015_properties[] = { ...@@ -1306,6 +1301,7 @@ static struct dvb_usb_device_properties af9015_properties[] = {
.usb_ctrl = DEVICE_SPECIFIC, .usb_ctrl = DEVICE_SPECIFIC,
.download_firmware = af9015_download_firmware, .download_firmware = af9015_download_firmware,
.firmware = "dvb-usb-af9015.fw", .firmware = "dvb-usb-af9015.fw",
.no_reconnect = 1,
.size_of_priv = sizeof(struct af9015_state), \ .size_of_priv = sizeof(struct af9015_state), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment