* [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
@ 2008-11-11 12:55 Thomas
2008-11-11 15:16 ` Antti Palosaari
0 siblings, 1 reply; 9+ messages in thread
From: Thomas @ 2008-11-11 12:55 UTC (permalink / raw)
To: linux-dvb
Hi List,
since fedora use 2.6.27 kernels this
is all what happens when i plug in the stick:
Nov 11 13:24:56 thomas-lt kernel: usb 2-6: new high speed USB device using ehci_hcd and address 3
Nov 11 13:24:57 thomas-lt kernel: usb 2-6: configuration #1 chosen from 1 choice
Nov 11 13:24:57 thomas-lt kernel: Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 16 -> 8
Nov 11 13:24:57 thomas-lt kernel: input: Afatech DVB-T 2 as /devices/pci0000:00/0000:00:1d.7/usb2/2-6/2-6:1.1/input/input9
Nov 11 13:24:57 thomas-lt kernel: input,hidraw0: USB HID v1.01 Keyboard [Afatech DVB-T 2] on usb-0000:00:1d.7-6
Nov 11 13:24:57 thomas-lt kernel: usb 2-6: New USB device found, idVendor=15a4, idProduct=9016
Nov 11 13:24:57 thomas-lt kernel: usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 11 13:24:57 thomas-lt kernel: usb 2-6: Product: DVB-T 2
Nov 11 13:24:57 thomas-lt kernel: usb 2-6: Manufacturer: Afatech
Nov 11 13:24:57 thomas-lt kernel: usb 2-6: SerialNumber: 010101010600001
Nov 11 13:24:57 thomas-lt kernel: dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
Nov 11 13:24:57 thomas-lt kernel: firmware: requesting dvb-usb-af9015.fw
Nov 11 13:24:57 thomas-lt kernel: dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
Nov 11 13:24:57 thomas-lt kernel: usbcore: registered new interface driver dvb_usb_af9015
if the stick is connected at boot time everything is working correctly.
can someone please give me a hint where to look for the problem?
version is af9015-e0e0e4ee5b33
Best Regards
Thomas
--
[:O]###[O:]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
2008-11-11 12:55 [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel Thomas
@ 2008-11-11 15:16 ` Antti Palosaari
2008-11-11 15:43 ` Thomas
0 siblings, 1 reply; 9+ messages in thread
From: Antti Palosaari @ 2008-11-11 15:16 UTC (permalink / raw)
To: Thomas; +Cc: linux-dvb
hello
Thomas wrote:
> Hi List,
>
>
> since fedora use 2.6.27 kernels this
> is all what happens when i plug in the stick:
>
> Nov 11 13:24:56 thomas-lt kernel: usb 2-6: new high speed USB device using ehci_hcd and address 3
> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: configuration #1 chosen from 1 choice
> Nov 11 13:24:57 thomas-lt kernel: Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 16 -> 8
> Nov 11 13:24:57 thomas-lt kernel: input: Afatech DVB-T 2 as /devices/pci0000:00/0000:00:1d.7/usb2/2-6/2-6:1.1/input/input9
> Nov 11 13:24:57 thomas-lt kernel: input,hidraw0: USB HID v1.01 Keyboard [Afatech DVB-T 2] on usb-0000:00:1d.7-6
> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: New USB device found, idVendor=15a4, idProduct=9016
> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: Product: DVB-T 2
> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: Manufacturer: Afatech
> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: SerialNumber: 010101010600001
> Nov 11 13:24:57 thomas-lt kernel: dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
> Nov 11 13:24:57 thomas-lt kernel: firmware: requesting dvb-usb-af9015.fw
> Nov 11 13:24:57 thomas-lt kernel: dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
> Nov 11 13:24:57 thomas-lt kernel: usbcore: registered new interface driver dvb_usb_af9015
>
>
> if the stick is connected at boot time everything is working correctly.
>
> can someone please give me a hint where to look for the problem?
>
> version is af9015-e0e0e4ee5b33
you are not alone with this problem. It only happens 2.6.27 kernels.
Looks like it does not reconnect device in the USB-bus as it should. I
don't have access to 2.6.27 kernel yet, so I cannot examine it more.
Hopefully there is someone who could fix that soon... I think good place
to test fix is add some sleep (msleep(100)) before/after RECONNECT_USB
-command around line 685 in af9015.c file. The other solution could be
to remove whole RECONNECT_USB (after firmware download) and set
no_reconnect -flag.
>
>
> Best Regards
> Thomas
regards
Antti
--
http://palosaari.fi/
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
2008-11-11 15:16 ` Antti Palosaari
@ 2008-11-11 15:43 ` Thomas
0 siblings, 0 replies; 9+ messages in thread
From: Thomas @ 2008-11-11 15:43 UTC (permalink / raw)
To: Antti Palosaari; +Cc: linux-dvb
Hi Antti,
> I think good place
> to test fix is add some sleep (msleep(100)) before/after RECONNECT_USB
> -command around line 685 in af9015.c file.
thank you, that helps.
i have added two lines:
msleep(1000);
req.cmd = RECONNECT_USB;
msleep(1000);
maybe some fine tunnig is required :)
but for me it works fine.
Regards
Thomas
Antti Palosaari schrieb:
> hello
>
>
> Thomas wrote:
>> Hi List,
>>
>>
>> since fedora use 2.6.27 kernels this
>> is all what happens when i plug in the stick:
>>
>> Nov 11 13:24:56 thomas-lt kernel: usb 2-6: new high speed USB device
>> using ehci_hcd and address 3
>> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: configuration #1 chosen
>> from 1 choice
>> Nov 11 13:24:57 thomas-lt kernel: Afatech DVB-T 2: Fixing fullspeed to
>> highspeed interval: 16 -> 8
>> Nov 11 13:24:57 thomas-lt kernel: input: Afatech DVB-T 2 as
>> /devices/pci0000:00/0000:00:1d.7/usb2/2-6/2-6:1.1/input/input9
>> Nov 11 13:24:57 thomas-lt kernel: input,hidraw0: USB HID v1.01
>> Keyboard [Afatech DVB-T 2] on usb-0000:00:1d.7-6
>> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: New USB device found,
>> idVendor=15a4, idProduct=9016
>> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: New USB device strings:
>> Mfr=1, Product=2, SerialNumber=3
>> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: Product: DVB-T 2
>> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: Manufacturer: Afatech
>> Nov 11 13:24:57 thomas-lt kernel: usb 2-6: SerialNumber: 010101010600001
>> Nov 11 13:24:57 thomas-lt kernel: dvb-usb: found a 'Afatech AF9015
>> DVB-T USB2.0 stick' in cold state, will try to load a firmware
>> Nov 11 13:24:57 thomas-lt kernel: firmware: requesting dvb-usb-af9015.fw
>> Nov 11 13:24:57 thomas-lt kernel: dvb-usb: downloading firmware from
>> file 'dvb-usb-af9015.fw'
>> Nov 11 13:24:57 thomas-lt kernel: usbcore: registered new interface
>> driver dvb_usb_af9015
>>
>>
>> if the stick is connected at boot time everything is working correctly.
>>
>> can someone please give me a hint where to look for the problem?
>>
>> version is af9015-e0e0e4ee5b33
>
> you are not alone with this problem. It only happens 2.6.27 kernels.
> Looks like it does not reconnect device in the USB-bus as it should. I
> don't have access to 2.6.27 kernel yet, so I cannot examine it more.
> Hopefully there is someone who could fix that soon... I think good place
> to test fix is add some sleep (msleep(100)) before/after RECONNECT_USB
> -command around line 685 in af9015.c file. The other solution could be
> to remove whole RECONNECT_USB (after firmware download) and set
> no_reconnect -flag.
>
>>
>>
>> Best Regards
>> Thomas
>
> regards
> Antti
--
[:O]###[O:]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
@ 2008-11-12 10:22 Sebastian Marskamp
2008-11-13 15:40 ` Antti Palosaari
0 siblings, 1 reply; 9+ messages in thread
From: Sebastian Marskamp @ 2008-11-12 10:22 UTC (permalink / raw)
To: Antti Palosaari; +Cc: linux-dvb
Theres also a patch , which works fine for me.
http://www.linuxtv.org/pipermail/linux-dvb/attachments/20081022/94261bbc/attachment.diff
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
2008-11-12 10:22 Sebastian Marskamp
@ 2008-11-13 15:40 ` Antti Palosaari
2008-11-13 16:00 ` Jose Alberto Reguero
0 siblings, 1 reply; 9+ messages in thread
From: Antti Palosaari @ 2008-11-13 15:40 UTC (permalink / raw)
To: Sebastian Marskamp; +Cc: linux-dvb
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
--
http://palosaari.fi/
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
2008-11-13 15:40 ` Antti Palosaari
@ 2008-11-13 16:00 ` Jose Alberto Reguero
2008-11-13 16:03 ` Antti Palosaari
0 siblings, 1 reply; 9+ messages in thread
From: Jose Alberto Reguero @ 2008-11-13 16:00 UTC (permalink / raw)
To: linux-dvb; +Cc: Antti Palosaari, Sebastian Marskamp
[-- Attachment #1: Type: text/plain, Size: 906 bytes --]
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
[-- Attachment #2: af9015.diff --]
[-- Type: text/x-patch, Size: 891 bytes --]
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), \
[-- Attachment #3: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
2008-11-13 16:00 ` Jose Alberto Reguero
@ 2008-11-13 16:03 ` Antti Palosaari
2008-11-13 16:34 ` Jose Alberto Reguero
0 siblings, 1 reply; 9+ messages in thread
From: Antti Palosaari @ 2008-11-13 16:03 UTC (permalink / raw)
To: Jose Alberto Reguero; +Cc: linux-dvb, Sebastian Marskamp
Jose Alberto Reguero wrote:
> 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
Looks better, could you provide signed-off-by?
regards
Antti
--
http://palosaari.fi/
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
2008-11-13 16:03 ` Antti Palosaari
@ 2008-11-13 16:34 ` Jose Alberto Reguero
2008-11-13 17:22 ` Antti Palosaari
0 siblings, 1 reply; 9+ messages in thread
From: Jose Alberto Reguero @ 2008-11-13 16:34 UTC (permalink / raw)
To: Antti Palosaari; +Cc: linux-dvb, Sebastian Marskamp
El Jueves, 13 de Noviembre de 2008, Antti Palosaari escribió:
> Jose Alberto Reguero wrote:
> > 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/94261bb
> >>>c/ 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
>
> Looks better, could you provide signed-off-by?
>
> regards
> Antti
Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Jose Alberto
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel
2008-11-13 16:34 ` Jose Alberto Reguero
@ 2008-11-13 17:22 ` Antti Palosaari
0 siblings, 0 replies; 9+ messages in thread
From: Antti Palosaari @ 2008-11-13 17:22 UTC (permalink / raw)
To: Jose Alberto Reguero; +Cc: linux-dvb, Sebastian Marskamp
>> Looks better, could you provide signed-off-by?
>>
>> regards
>> Antti
>
> Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
>
> Jose Alberto
Thanks!
http://linuxtv.org/hg/~anttip/af9015/
regards
Antti
--
http://palosaari.fi/
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-11-13 17:22 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 12:55 [linux-dvb] af9015 problem on fedora rawhide 9.93 with 2.6.27x kernel Thomas
2008-11-11 15:16 ` Antti Palosaari
2008-11-11 15:43 ` Thomas
-- strict thread matches above, loose matches on Subject: below --
2008-11-12 10:22 Sebastian Marskamp
2008-11-13 15:40 ` Antti Palosaari
2008-11-13 16:00 ` Jose Alberto Reguero
2008-11-13 16:03 ` Antti Palosaari
2008-11-13 16:34 ` Jose Alberto Reguero
2008-11-13 17:22 ` Antti Palosaari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox