Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

[Kernel 4.6] afatech based DVB-T usb sticks doesn't work anymore but not all (2 replies)

$
0
0
- Hauppauge WinTV MiniStick 2 (NSA325, iConnect, x86_64) (prod: f900 ven: 2040)
- MSI Digi Vox Mini II (black / white) (NSA325, iConnect) (prod: 9016 ven: 15a4)

as mentioned in the linux kernel thread, this sticks cannot be used in kernel 4.6 as they were
fully functional in linux 4.5.5 and earlier.

after searching a bit around, I found out, that there were some changes between kernel 4.6 rc2
and 4.6 rc3

https://lkml.org/lkml/2016/5/19/237


behaviour in kernel 4.5 and earlier:

[   12.603699] usb 1-1.2: dvb_usb_af9035: prechip_version=83 chip_version=02 chip_type=9135
[   12.662092] usb 1-1.2: dvb_usb_v2: found a 'Hauppauge WinTV-MiniStick 2' in cold state
[   12.773961] usb 1-1.2: dvb_usb_v2: downloading firmware from file 'dvb-usb-it9135-02.fw'
[   12.948436] usb 1-1.2: dvb_usb_af9035: firmware version=3.40.1.0
[   12.976153] usb 1-1.2: dvb_usb_v2: found a 'Hauppauge WinTV-MiniStick 2' in warm state
[   12.994935] usb 1-1.2: dvb_usb_af9035: [0] overriding tuner from 00 to 60
[   13.031671] usb 1-1.2: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[   13.076727] DVB: registering new adapter (Hauppauge WinTV-MiniStick 2)
[   13.145692] af9033 1-0038: firmware version: LINK 3.40.1.0 - OFDM 3.40.1.0
[   13.167965] af9033 1-0038: Afatech AF9033 successfully attached
[   13.182569] usb 1-1.2: DVB: registering adapter 0 frontend 0 (Afatech AF9033 (DVB-T))...
[   13.257792] it913x 1-001c: ITE IT913X BX successfully attached
[   13.303056] Registered IR keymap rc-empty
[   13.316012] input: Hauppauge WinTV-MiniStick 2 as /devices/platform/ocp@f1000000/f1050000.ehci/usb1/1-1/1-1.2/rc/rc0/input1
[   13.339333] rc rc0: Hauppauge WinTV-MiniStick 2 as /devices/platform/ocp@f1000000/f1050000.ehci/usb1/1-1/1-1.2/rc/rc0
[   13.358682] usb 1-1.2: dvb_usb_v2: schedule remote query interval to 500 msecs
[   13.366107] usb 1-1.2: dvb_usb_v2: 'Hauppauge WinTV-MiniStick 2' successfully initialized and connected
[   13.378399] usbcore: registered new interface driver dvb_usb_af9035

behavour in kernel 4.6:


[ 1058.488465] usb 1-1.3: new high-speed USB device number 5 using orion-ehci
[ 1058.613242] usb 1-1.3: New USB device found, idVendor=2040, idProduct=f900
[ 1058.624403] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1058.644422] usb 1-1.3: Product: WinTV-Ministick 2
[ 1058.652416] usb 1-1.3: Manufacturer: Hauppauge
[ 1058.664407] usb 1-1.3: SerialNumber: 000DFE8C7D80
[ 1058.681675] usb 1-1.3: dvb_usb_af9035: prechip_version=83 chip_version=02 chip_type=9135
[ 1058.701376] usb 1-1.3: dvb_usb_v2: found a 'Hauppauge WinTV-MiniStick 2' in cold state
[ 1058.716178] usb 1-1.3: dvb_usb_v2: downloading firmware from file 'dvb-usb-it9135-02.fw'
[ 1058.790534] dvb_usb_af9035: probe of 1-1.3:1.0 failed with error -5

the erratic source is in the pinctrl stuff:

linux/drivers/base/pinctrl.c

	dev->pins->p = devm_pinctrl_get(dev);
	if (IS_ERR(dev->pins->p)) {
		dev_dbg(dev, "no pinctrl handle\n");
		ret = PTR_ERR(dev->pins->p);
		goto cleanup_alloc;
	}


linux/drivers/pinctrl/core.c http://pastebin.com/Fm0YHTrS

I've testet some other sticks, but they weren't affected:

- MSI Digi Vox Mini Deluxe (realtek) (prod: 1101 ven: 1d19)
- Terratec Cinergy T Stick + (realtek) (prod: 2832 ven: 0bda)
- Terratec Cinergy T Stick (afatech but uses dvb-usb-af9035-02 firmware) (prod: 0093 ven: 0ccd)
- Hauppauge Nova-T 2 (Dibcom) (prod: 7060 ven: 2040)

Other things not effected (tested with some of my devices):

- Wlan Sticks (Realtek, Ralink, Atheros)
- Mass Storage
- UMTS Sticks (Huawei)

Viewing all articles
Browse latest Browse all 3247

Trending Articles