Bug#655387: Samsung galaxy S won't tether trough usb due to bad CDC descriptors
Package: linux-2.6
Version: 3.2~rc7-1~experimental.1
Severity: normal
Tags: patch
Dear Maintainer,
This bug affects all kernels i've tried in debian wheezy, sid and experimental, I found a bug report in ubuntu where i found this patch that solves the problem, but the user who wrote the patch described it as workaroung instead of fix:
"I write this comment via USB tethering fixed with attached patch.
Consider this patch as a workaround.
My knowledge of coding for Linux kernel, USB and the tether hardware is close to be zero.
It works currently but it is no real solution. There should be a
"correct" way to get the true interface numbers of master and slave.
E.g. there is a bFirstInterface. I think this might be the information
to start with. But how to get this from the USB stack? I don't know up
to now."
This it's been ignored in ubuntu and I don't know why.
I've build my own kernel applying that patch and works perfect, with linux-image-3.1 and linux-image-3.2 using debian sources from wheeze and from experimental.
Thanks
Iker
-- Package-specific info:
** Version:
Linux version 3.2.0-rc7-686-pae (Debian 3.2~rc7-1~experimental.1) (waldi@debian.org) (gcc version 4.6.2 (Debian 4.6.2-4) ) #1 SMP Wed Dec 28 21:26:25 UTC 2011
** Command line:
BOOT_IMAGE=/boot/vmlinuz-3.2.0-rc7-686-pae root=UUID=4afc8eed-9b70-4e3b-9fdc-3164ff57aebf ro quiet
** Not tainted
** Kernel log:
[ 7.804932] usb 2-6: SerialNumber: 20021111153705700
[ 8.044042] usb 7-1: new full-speed USB device number 2 using uhci_hcd
[ 8.287449] usb 7-1: New USB device found, idVendor=0b05, idProduct=1712
[ 8.287451] usb 7-1: New USB device strings: Mfr=0, Product=0, SerialNumber=3
[ 8.287454] usb 7-1: SerialNumber: 0194E8-5B-0002
[ 8.382268] Bluetooth: Core ver 2.16
[ 8.382287] NET: Registered protocol family 31
[ 8.382289] Bluetooth: HCI device and connection manager initialized
[ 8.382291] Bluetooth: HCI socket layer initialized
[ 8.382293] Bluetooth: L2CAP socket layer initialized
[ 8.382437] Bluetooth: SCO socket layer initialized
[ 8.387312] Console: switching to colour frame buffer device 160x50
[ 8.388371] usbcore: registered new interface driver uas
[ 8.389654] fb0: nouveaufb frame buffer device
[ 8.389655] drm: registered panic notifier
[ 8.389662] [drm] Initialized nouveau 0.0.16 20090420 for 0000:01:00.0 on minor 0
[ 8.543951] Bluetooth: Generic Bluetooth USB driver ver 0.6
[ 8.544115] usbcore: registered new interface driver btusb
[ 8.579984] Initializing USB Mass Storage driver...
[ 8.580077] scsi5 : usb-storage 2-6:1.0
[ 8.580184] usbcore: registered new interface driver usb-storage
[ 8.580186] USB Mass Storage support registered.
[ 9.586231] scsi 5:0:0:0: Direct-Access Generic- xD/SDMMC/MS/Pro 1.00 PQ: 0 ANSI: 0 CCS
[ 9.590510] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 10.908425] Adding 489936k swap on /dev/sda6. Priority:-1 extents:1 across:489936k
[ 10.912431] EXT4-fs (sda7): re-mounted. Opts: (null)
[ 11.225082] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro
[ 11.342390] loop: module loaded
[ 12.540915] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 13.545890] RPC: Registered named UNIX socket transport module.
[ 13.545893] RPC: Registered udp transport module.
[ 13.545895] RPC: Registered tcp transport module.
[ 13.545897] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 13.604444] FS-Cache: Loaded
[ 13.639366] FS-Cache: Netfs 'nfs' registered for caching
[ 13.657394] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 13.904329] fuse init (API version 7.17)
[ 17.554312] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 17.554315] Bluetooth: BNEP filters: protocol multicast
[ 17.568829] Bluetooth: RFCOMM TTY layer initialized
[ 17.568833] Bluetooth: RFCOMM socket layer initialized
[ 17.568836] Bluetooth: RFCOMM ver 1.11
[ 18.843693] lp: driver loaded but no devices found
[ 18.852240] ppdev: user-space parallel port driver
[ 31.370003] Bridge firewalling registered
[ 31.668112] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 33.007287] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 33.402310] ADDRCONF(NETDEV_UP): virbr0: link is not ready
[ 34.355707] Ebtables v2.0 registered
[ 34.416178] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 37.719860] iwl3945 0000:05:00.0: loaded firmware version 15.32.2.9
[ 37.793965] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 43.017459] r8169 0000:02:00.0: eth0: link down
[ 43.017664] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 46.505988] EXT4-fs (sda7): re-mounted. Opts: errors=remount-ro,commit=0
[ 46.882315] EXT4-fs (sda3): re-mounted. Opts: commit=0
[ 49.675973] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 50.113693] r8169 0000:02:00.0: eth0: link down
[ 50.113852] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 50.475888] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 56.375875] wlan0: authenticate with 00:1a:2b:2a:85:bb (try 1)
[ 56.377671] wlan0: authenticated
[ 56.377717] wlan0: associate with 00:1a:2b:2a:85:bb (try 1)
[ 56.380095] wlan0: RX AssocResp from 00:1a:2b:2a:85:bb (capab=0x411 status=0 aid=1)
[ 56.380101] wlan0: associated
[ 56.381742] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 67.360035] wlan0: no IPv6 routers present
[ 89.025897] process `skype' is using obsolete setsockopt SO_BSDCOMPAT
[ 503.792222] usb 2-2: new high-speed USB device number 5 using ehci_hcd
[ 503.925012] usb 2-2: New USB device found, idVendor=04e8, idProduct=6877
[ 503.925022] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 503.925029] usb 2-2: Product: SAMSUNG_Android
[ 503.925035] usb 2-2: Manufacturer: SAMSUNG
[ 503.925040] usb 2-2: SerialNumber: 353271BC9D8400EC
[ 503.995925] cdc_acm 2-2:1.0: This device cannot do calls on its own. It is not a modem.
[ 503.996070] cdc_acm 2-2:1.0: ttyACM0: USB ACM device
[ 503.996468] usbcore: registered new interface driver cdc_acm
[ 503.996471] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 509.033511] usb 2-2: USB disconnect, device number 5
[ 509.304059] usb 2-2: new high-speed USB device number 6 using ehci_hcd
[ 509.438155] usb 2-2: New USB device found, idVendor=04e8, idProduct=6881
[ 509.438165] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 509.438172] usb 2-2: Product: SAMSUNG_Android
[ 509.438178] usb 2-2: Manufacturer: SAMSUNG
[ 509.438183] usb 2-2: SerialNumber: 353271BC9D8400EC
[ 509.743606] usbcore: registered new interface driver cdc_ether
[ 509.745205] usb 2-2: bad CDC descriptors
[ 509.745231] usbcore: registered new interface driver rndis_host
[ 509.753788] usb 2-2: bad CDC descriptors
[ 509.753821] usbcore: registered new interface driver rndis_wlan
** Model information
not available
** Loaded modules:
rndis_wlan
rndis_host
cdc_ether
usbnet
cdc_acm
ip6table_filter
ip6_tables
ebtable_nat
ebtables
ipt_MASQUERADE
iptable_nat
nf_nat
nf_conntrack_ipv4
nf_defrag_ipv4
xt_state
nf_conntrack
ipt_REJECT
xt_CHECKSUM
iptable_mangle
xt_tcpudp
iptable_filter
ip_tables
x_tables
bridge
stp
acpi_cpufreq
mperf
cpufreq_powersave
cpufreq_stats
cpufreq_conservative
cpufreq_userspace
parport_pc
ppdev
lp
parport
rfcomm
bnep
fuse
nfsd
nfs
lockd
fscache
auth_rpcgss
nfs_acl
sunrpc
loop
kvm_intel
kvm
usb_storage
btusb
uas
bluetooth
snd_hda_codec_si3054
joydev
snd_hda_codec_realtek
snd_hda_intel
snd_hda_codec
snd_hwdep
snd_pcm_oss
snd_mixer_oss
snd_pcm
snd_timer
sr_mod
cdrom
ata_generic
snd
nouveau
ttm
drm_kms_helper
uhci_hcd
soundcore
ehci_hcd
usbcore
snd_page_alloc
ata_piix
drm
i2c_algo_bit
i2c_core
arc4
iwl3945
mxm_wmi
r8169
asus_laptop
iwl_legacy
mac80211
wmi
cfg80211
psmouse
pcspkr
sparse_keymap
serio_raw
iTCO_wdt
battery
mii
iTCO_vendor_support
rfkill
ac
evdev
power_supply
input_polldev
usb_common
processor
video
button
ext4
mbcache
jbd2
crc16
dm_mod
sd_mod
crc_t10dif
thermal
thermal_sys
ahci
libahci
libata
scsi_mod
** Network interface configuration:
auto lo
iface lo inet loopback
** Network status:
*** IP interfaces and addresses:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:1d:60:bf:ef:97 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:1c:bf:15:c4:71 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.157/24 brd 192.168.1.255 scope global wlan0
inet6 fe80::21c:bfff:fe15:c471/64 scope link
valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 8e:7b:1c:4b:6b:61 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
*** Device statistics:
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 12299 235 0 0 0 0 0 0 12299 235 0 0 0 0 0 0
virbr0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
wlan0: 4953682 6309 0 0 0 0 0 0 1095499 5516 0 0 0 0 0 0
eth0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
*** Protocol statistics:
Ip:
6555 total packets received
0 forwarded
0 incoming packets discarded
6555 incoming packets delivered
5727 requests sent out
49 dropped because of missing route
Icmp:
28 ICMP messages received
0 input ICMP message failed.
ICMP input histogram:
destination unreachable: 27
echo replies: 1
119 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
destination unreachable: 118
echo request: 1
IcmpMsg:
InType0: 1
InType3: 27
OutType3: 118
OutType8: 1
Tcp:
133 active connections openings
19 passive connection openings
18 failed connection attempts
8 connection resets received
4 connections established
5522 segments received
4645 segments send out
70 segments retransmited
0 bad segments received.
634 resets sent
Udp:
791 packets received
118 packets to unknown port received.
0 packet receive errors
885 packets sent
UdpLite:
TcpExt:
1 packets pruned from receive queue because of socket buffer overrun
66 TCP sockets finished time wait in fast timer
61 delayed acks sent
Quick ack mode was activated 12 times
5 packets directly queued to recvmsg prequeue.
343 bytes directly received in process context from prequeue
3464 packet headers predicted
2 packets header predicted and directly queued to user
650 acknowledgments not containing data payload received
181 predicted acknowledgments
2 times recovered from packet loss by selective acknowledgements
11 congestion windows recovered without slow start by DSACK
3 congestion windows recovered without slow start after partial ack
1 timeouts after SACK recovery
2 fast retransmits
2 forward retransmits
26 retransmits in slow start
37 other TCP timeouts
41 packets collapsed in receive queue due to low socket buffer
12 DSACKs sent for old packets
18 DSACKs received
1 connections reset due to unexpected data
8 connections reset due to early user close
TCPDSACKIgnoredOld: 1
TCPDSACKIgnoredNoUndo: 6
TCPSackShiftFallback: 16
IpExt:
InMcastPkts: 93
OutMcastPkts: 96
InBcastPkts: 64
InOctets: 4885780
OutOctets: 930541
InMcastOctets: 10625
OutMcastOctets: 13050
InBcastOctets: 7855
** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 03)
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
00:01.0 PCI bridge [0604]: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port [8086:2a01] (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: f8000000-fe0fffff
Prefetchable memory behind bridge: 00000000bdf00000-00000000ddefffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA+ MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1a.0 USB controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 [8086:2834] (rev 03) (prog-if 00 [UHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
Region 4: I/O ports at e080 [size=32]
Kernel driver in use: uhci_hcd
00:1a.1 USB controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 [8086:2835] (rev 03) (prog-if 00 [UHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 21
Region 4: I/O ports at e000 [size=32]
Kernel driver in use: uhci_hcd
00:1a.7 USB controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 [8086:283a] (rev 03) (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 18
Region 0: Memory at febff400 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 03)
Subsystem: ASUSTeK Computer Inc. Asus M51S series [1043:1339]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 47
Region 0: Memory at febf8000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 [8086:283f] (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR+ <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000b000-0000bfff
Memory behind bridge: fe100000-fe1fffff
Prefetchable memory behind bridge: 0000000080200000-00000000803fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 [8086:2841] (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Bus: primary=00, secondary=03, subordinate=04, sec-latency=0
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: fe200000-fe9fffff
Prefetchable memory behind bridge: 00000000ddf00000-00000000dfefffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 [8086:2843] (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: 00001000-00001fff
Memory behind bridge: fea00000-feafffff
Prefetchable memory behind bridge: 0000000080000000-00000000801fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 [8086:2830] (rev 03) (prog-if 00 [UHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
Region 4: I/O ports at dc00 [size=32]
Kernel driver in use: uhci_hcd
00:1d.1 USB controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 [8086:2831] (rev 03) (prog-if 00 [UHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 19
Region 4: I/O ports at d880 [size=32]
Kernel driver in use: uhci_hcd
00:1d.2 USB controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 [8086:2832] (rev 03) (prog-if 00 [UHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 18
Region 4: I/O ports at d800 [size=32]
Kernel driver in use: uhci_hcd
00:1d.7 USB controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 [8086:2836] (rev 03) (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
Region 0: Memory at febff000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev f3) (prog-if 01 [Subtractive decode])
Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Bus: primary=00, secondary=06, subordinate=06, sec-latency=32
Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
00:1f.0 ISA bridge [0601]: Intel Corporation 82801HM (ICH8M) LPC Interface Controller [8086:2815] (rev 03)
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
00:1f.1 IDE interface [0101]: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) IDE Controller [8086:2850] (rev 03) (prog-if 8a [Master SecP PriP])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 18
Region 0: I/O ports at 01f0 [size=8]
Region 1: I/O ports at 03f4 [size=1]
Region 2: I/O ports at 0170 [size=8]
Region 3: I/O ports at 0374 [size=1]
Region 4: I/O ports at ffa0 [size=16]
Kernel driver in use: ata_piix
00:1f.2 SATA controller [0106]: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] [8086:2829] (rev 03) (prog-if 01 [AHCI 1.0])
Subsystem: ASUSTeK Computer Inc. Device [1043:15c7]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 44
Region 0: I/O ports at ec00 [size=8]
Region 1: I/O ports at e880 [size=4]
Region 2: I/O ports at e800 [size=8]
Region 3: I/O ports at e480 [size=4]
Region 4: I/O ports at e400 [size=32]
Region 5: Memory at febff800 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci
01:00.0 VGA compatible controller [0300]: nVidia Corporation G86 [GeForce 8400M G] [10de:0428] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device [1043:1513]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Region 1: Memory at c0000000 (64-bit, prefetchable) [size=256M]
Region 3: Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
Region 5: I/O ports at ac00 [size=128]
Expansion ROM at fe0e0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nouveau
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 01)
Subsystem: ASUSTeK Computer Inc. A6J-Q008 [1043:11f5]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR+ <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 45
Region 0: I/O ports at b800 [size=256]
Region 2: Memory at fe1ff000 (64-bit, non-prefetchable) [size=4K]
Expansion ROM at fe1e0000 [disabled] [size=64K]
Capabilities: <access denied>
Kernel driver in use: r8169
05:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection [8086:4222] (rev 02)
Subsystem: Intel Corporation PRO/Wireless 3945ABG Network Connection [8086:1001]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 46
Region 0: Memory at feaff000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: iwl3945
** USB devices:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 174f:6a33 Syntek Web Cam - Asus F3SA, F9J, F9S
Bus 002 Device 004: ID 0bda:0116 Realtek Semiconductor Corp. Mass Storage Device
Bus 007 Device 002: ID 0b05:1712 ASUSTek Computer, Inc. BT-183 Bluetooth 2.0+EDR adapter
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-rc7-686-pae (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages linux-image-3.2.0-rc7-686-pae depends on:
ii debconf [debconf-2.0] 1.5.41
ii initramfs-tools [linux-initramfs-tool] 0.99
ii linux-base 3.4
ii module-init-tools 3.16-1
Versions of packages linux-image-3.2.0-rc7-686-pae recommends:
ii firmware-linux-free 3
ii libc6-i686 2.13-24
Versions of packages linux-image-3.2.0-rc7-686-pae suggests:
pn grub-pc 1.99-14
pn linux-doc-3.2 <none>
Versions of packages linux-image-3.2.0-rc7-686-pae is related to:
pn firmware-bnx2 <none>
pn firmware-bnx2x <none>
pn firmware-ipw2x00 <none>
pn firmware-ivtv <none>
pn firmware-iwlwifi 0.34
pn firmware-linux <none>
pn firmware-linux-nonfree <none>
pn firmware-qlogic <none>
pn firmware-ralink <none>
pn xen-hypervisor <none>
-- debconf information:
linux-image-3.2.0-rc7-686-pae/prerm/removing-running-kernel-3.2.0-rc7-686-pae: true
linux-image-3.2.0-rc7-686-pae/postinst/ignoring-ramdisk:
linux-image-3.2.0-rc7-686-pae/postinst/missing-firmware-3.2.0-rc7-686-pae:
linux-image-3.2.0-rc7-686-pae/postinst/depmod-error-initrd-3.2.0-rc7-686-pae: false
diff -ru linux-2.6.38/drivers/net/usb/cdc_ether.c linux-2.6.38.patched/drivers/net/usb/cdc_ether.c
--- linux-2.6.38/drivers/net/usb/cdc_ether.c 2011-03-15 02:20:32.000000000 +0100
+++ linux-2.6.38.patched/drivers/net/usb/cdc_ether.c 2011-06-30 18:48:29.749287600 +0200
@@ -86,6 +86,8 @@
struct usb_driver *driver = driver_of(intf);
struct usb_cdc_mdlm_desc *desc = NULL;
struct usb_cdc_mdlm_detail_desc *detail = NULL;
+ int mapped_master;
+ int mapped_slave;
if (sizeof dev->data < sizeof *info)
return -EDOM;
@@ -188,6 +190,24 @@
info->u->bMasterInterface0);
info->data = usb_ifnum_to_if(dev->udev,
info->u->bSlaveInterface0);
+ if ((!info->control || !info->data)
+ && (info->u->bMasterInterface0 > 0)) {
+ // try with mapping to start with 0
+ mapped_master = (info->u->bMasterInterface0
+ - ((info->u->bSlaveInterface0 >
+ info->u->bMasterInterface0) ?
+ info->u->bMasterInterface0 :
+ info->u->bSlaveInterface0));
+ mapped_slave = (info->u->bSlaveInterface0
+ - ((info->u->bSlaveInterface0 >
+ info->u->bMasterInterface0) ?
+ info->u->bMasterInterface0 :
+ info->u->bSlaveInterface0));
+ info->control = usb_ifnum_to_if(dev->udev,
+ mapped_master);
+ info->data = usb_ifnum_to_if(dev->udev,
+ mapped_slave);
+ }
if (!info->control || !info->data) {
dev_dbg(&intf->dev,
"master #%u/%p slave #%u/%p\n",
Reply to: