Google
  Web www.spinics.net

Re: af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


El Jueves, 13 de Noviembre de 2008, Antti Palosaari escribió:
> Sebastian Marskamp wrote:
> > Theres also a patch   , which works fine for me.
> >
> > http://www.linuxtv.org/pipermail/linux-dvb/attachments/20081022/94261bbc/
> >attachment.diff
>
> This patch is not OK because it still sends reconnect USB-command. It
> may lead to situation stick reconnects but driver does not except that.
>
> It seems like problem is that it sends USB-reconnect command to the
> stick firmware immediately after firmware is downloaded. Sometimes
> (especially Kernel 2.6.27) USB-reconnect command will be rejected by
> stick firmware because firmware is not started yet. Small sleep just
> before USB-reconnect is needed to ensure stick firmware is running.
>
> Is there anyone who has this problem and can make & test patch?
>
> regards
> Antti

The attached patch work for me.

Jose Alberto

diff -r b45ffc93fb82 linux/drivers/media/dvb/dvb-usb/af9015.c
--- a/linux/drivers/media/dvb/dvb-usb/af9015.c	Wed Nov 05 00:59:37 2008 +0000
+++ b/linux/drivers/media/dvb/dvb-usb/af9015.c	Thu Nov 13 16:50:22 2008 +0100
@@ -681,12 +681,6 @@
 		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;
 }
@@ -1219,6 +1213,7 @@
 		.usb_ctrl = DEVICE_SPECIFIC,
 		.download_firmware = af9015_download_firmware,
 		.firmware = "dvb-usb-af9015.fw",
+		.no_reconnect = 1,
 
 		.size_of_priv = sizeof(struct af9015_state), \
 
@@ -1317,6 +1312,7 @@
 		.usb_ctrl = DEVICE_SPECIFIC,
 		.download_firmware = af9015_download_firmware,
 		.firmware = "dvb-usb-af9015.fw",
+		.no_reconnect = 1,
 
 		.size_of_priv = sizeof(struct af9015_state), \
 
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Linux Media]     [Video 4 Linux]     [Video Technology]     [Asterisk]     [Photo]     [Samba]     [Xorg]     [Xfree86]     [Devices]     [DVB Maintainer]     [Linux USB]