Am Mittwoch, 9. Oktober 2013, 10:50:38 schrieben Sie: > Could you mount debugfs and send the relevant part of > /sys/kernel/debug/usb/devices ? I'd like to verify which configuration > and altsettings are currently active > (1 and 2 before and after plug in of the device) diff -u 1.txt 2.txt --- 1.txt 2013-10-09 23:03:13.682222477 +0200 +++ 2.txt 2013-10-09 23:04:20.596385935 +0200 @@ -54,7 +54,29 @@ I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms -T: Bus=01 Lev=01 Prnt=01 Port=05 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 +T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=480 MxCh= 0 +D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=ff MxPS=64 #Cfgs= 2 +P: Vendor=12d1 ProdID=1f16 Rev= 1.02 +S: Manufacturer=Vodafone (Huawei) +S: Product=K5150 +S: SerialNumber=FFFFFFFFFFFFFFFF +C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA +I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage +E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms +E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms +C: #Ifs= 3 Cfg#= 2 Atr=a0 MxPwr=500mA +A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 +I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver= +E: Ad=82(I) Atr=03(Int.) MxPS= 64 Ivl=2ms +I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver= +I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver= +E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms +E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms +I: If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver= +E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms +E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms + +T: Bus=01 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=05c8 ProdID=021a Rev= 1.08 S: Manufacturer=GenesysLogic Technology Co., Ltd. > >> Relevant parts of dmesg would be interesting... And preferably with some > >> debugging too, if the probing really fails. hpmini:~ # dmesg [ 158.783166] usb 1-2: new high-speed USB device number 3 using ehci-pci [ 159.036814] usb 1-2: New USB device found, idVendor=12d1, idProduct=1f16 [ 159.036829] usb 1-2: New USB device strings: Mfr=5, Product=4, SerialNumber=7 [ 159.036840] usb 1-2: Product: K5150 [ 159.036849] usb 1-2: Manufacturer: Vodafone (Huawei) [ 159.036857] usb 1-2: SerialNumber: FFFFFFFFFFFFFFFF [ 159.091669] usb-storage 1-2:1.0: USB Mass Storage device detected [ 159.092190] scsi4 : usb-storage 1-2:1.0 [ 159.092519] usbcore: registered new interface driver usb-storage [ 160.111249] scsi 4:0:0:0: CD-ROM Vodafone Storage(Huawei) 2.31 PQ: 0 ANSI: 2 [ 160.112164] scsi 4:0:0:0: Attached scsi generic sg1 type 5 [ 160.165484] sr0: scsi-1 drive [ 160.165498] cdrom: Uniform CD-ROM driver Revision: 3.20 [ 160.166807] sr 4:0:0:0: Attached scsi CD-ROM sr0 [ 305.465773] r8169 0000:03:00.0 eth0: link up [ 305.465800] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 305.675256] NET: Registered protocol family 17 hpmini:~ # modprobe cdc_mbim hpmini:~ # dmesg [ 158.783166] usb 1-2: new high-speed USB device number 3 using ehci-pci [ 159.036814] usb 1-2: New USB device found, idVendor=12d1, idProduct=1f16 [ 159.036829] usb 1-2: New USB device strings: Mfr=5, Product=4, SerialNumber=7 [ 159.036840] usb 1-2: Product: K5150 [ 159.036849] usb 1-2: Manufacturer: Vodafone (Huawei) [ 159.036857] usb 1-2: SerialNumber: FFFFFFFFFFFFFFFF [ 159.091669] usb-storage 1-2:1.0: USB Mass Storage device detected [ 159.092190] scsi4 : usb-storage 1-2:1.0 [ 159.092519] usbcore: registered new interface driver usb-storage [ 160.111249] scsi 4:0:0:0: CD-ROM Vodafone Storage(Huawei) 2.31 PQ: 0 ANSI: 2 [ 160.112164] scsi 4:0:0:0: Attached scsi generic sg1 type 5 [ 160.165484] sr0: scsi-1 drive [ 160.165498] cdrom: Uniform CD-ROM driver Revision: 3.20 [ 160.166807] sr 4:0:0:0: Attached scsi CD-ROM sr0 [ 305.465773] r8169 0000:03:00.0 eth0: link up [ 305.465800] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 305.675256] NET: Registered protocol family 17 [ 467.394380] usbcore: registered new interface driver cdc_wdm [ 467.410406] usbcore: registered new interface driver cdc_ncm [ 467.415153] usbcore: registered new interface driver cdc_mbim hpmini:~ # lsmod | grep cdc cdc_mbim 13176 0 cdc_ncm 20024 1 cdc_mbim usbnet 39440 2 cdc_mbim,cdc_ncm cdc_wdm 18919 1 cdc_mbim > > No need if the problem is that it doesn't probe at all. > > But if you have dynamic debugging enabled and debugfs mounted, then > > egrep 'ncm|mbim' /sys/kernel/debug/dynamic_debug/control > hpmini:~ # egrep 'ncm|mbim' /sys/kernel/debug/dynamic_debug/control drivers/net/usb/cdc_ncm.c:450 [cdc_ncm]cdc_ncm_bind_common =_ "CDC Union missing - got slave from IAD\012" drivers/net/usb/cdc_ncm.c:994 [cdc_ncm]cdc_ncm_rx_fixup =_ "invalid DPT16 signature <%u>\012" drivers/net/usb/cdc_ncm.c:1018 [cdc_ncm]cdc_ncm_rx_fixup =_ "invalid frame detected (ignored)offset[%u]=%u, length=%u, skb=%p\012" drivers/net/usb/cdc_ncm.c:1126 [cdc_ncm]cdc_ncm_status =_ "NCM: unexpected notification 0x%02x!\012" drivers/net/usb/cdc_ncm.c:103 [cdc_ncm]cdc_ncm_setup =_ "failed GET_NTB_PARAMETERS\012" drivers/net/usb/cdc_ncm.c:135 [cdc_ncm]cdc_ncm_setup =_ "dwNtbInMaxSize=%u dwNtbOutMaxSize=%u wNdpOutPayloadRemainder=%u wNdpOutDivisor=%u wNdpOutAlignment=%u wNtbOutMaxDatagrams=%u flags=0x%x\012" drivers/net/usb/cdc_ncm.c:145 [cdc_ncm]cdc_ncm_setup =_ "Using min receive length=%d\012" drivers/net/usb/cdc_ncm.c:151 [cdc_ncm]cdc_ncm_setup =_ "Using default maximum receive length=%d\012" drivers/net/usb/cdc_ncm.c:164 [cdc_ncm]cdc_ncm_setup =_ "Setting NTB Input Size failed\012" drivers/net/usb/cdc_ncm.c:172 [cdc_ncm]cdc_ncm_setup =_ "Using default maximum transmit length=%d\012" drivers/net/usb/cdc_ncm.c:186 [cdc_ncm]cdc_ncm_setup =_ "Using default alignment: 4 bytes\012" drivers/net/usb/cdc_ncm.c:200 [cdc_ncm]cdc_ncm_setup =_ "Using default transmit modulus: 4 bytes\012" drivers/net/usb/cdc_ncm.c:206 [cdc_ncm]cdc_ncm_setup =_ "Using default transmit remainder: 0 bytes\012" drivers/net/usb/cdc_ncm.c:224 [cdc_ncm]cdc_ncm_setup =_ "Setting CRC mode off failed\012" drivers/net/usb/cdc_ncm.c:235 [cdc_ncm]cdc_ncm_setup =_ "Setting NTB format to 16-bit failed\012" drivers/net/usb/cdc_ncm.c:257 [cdc_ncm]cdc_ncm_setup =_ "GET_MAX_DATAGRAM_SIZE failed, use size=%u\012" drivers/net/usb/cdc_ncm.c:282 [cdc_ncm]cdc_ncm_setup =_ "SET_MAX_DGRAM_SIZE failed\012" drivers/net/usb/cdc_ncm.c:901 [cdc_ncm]cdc_ncm_rx_verify_nth16 =_ "frame too short\012" drivers/net/usb/cdc_ncm.c:909 [cdc_ncm]cdc_ncm_rx_verify_nth16 =_ "invalid NTH16 signature <%u>\012" drivers/net/usb/cdc_ncm.c:916 [cdc_ncm]cdc_ncm_rx_verify_nth16 =_ "unsupported NTB block length %u/%u\012" drivers/net/usb/cdc_ncm.c:924 [cdc_ncm]cdc_ncm_rx_verify_nth16 =_ "sequence number glitch prev=%d curr=%d\012" drivers/net/usb/cdc_ncm.c:948 [cdc_ncm]cdc_ncm_rx_verify_ndp16 =_ "invalid DPT16 length <%u>\012" drivers/net/usb/cdc_ncm.c:959 [cdc_ncm]cdc_ncm_rx_verify_ndp16 =_ "Invalid nframes = %d\012" drivers/net/usb/cdc_ncm.c:941 [cdc_ncm]cdc_ncm_rx_verify_ndp16 =_ "invalid NDP offset <%u>\012" drivers/net/usb/cdc_mbim.c:268 [cdc_mbim]cdc_mbim_rx_fixup =_ "unsupported NDP signature <0x%08x>\012" drivers/net/usb/cdc_mbim.c:292 [cdc_mbim]cdc_mbim_rx_fixup =_ "invalid frame detected (ignored) offset[%u]=%u, length=%u, skb=%p\012" drivers/net/usb/cdc_mbim.c:40 [cdc_mbim]cdc_mbim_manage_power =_ "%s() pmcount=%d, on=%d\012" hpmini:~ # > will show you a number of interesting debug sites which can be enabled > without rebuilding anything. See Documentation/dynamic-debug-howto.txt > for details on how to use this. Ok. I will read this, if the things above do not help. Thomas -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html