On Mon, Mar 03, 2014 at 10:25:48PM +0800, vichy wrote: > hi all: > when I plug 3g modem dongle to ehci port, it works > But when I plug in xhci port, it cannot successfully doing the modem > mode change. > The related 3G modem driver should be independent by host type, right? It looks like from the logs that under EHCI, the firmware is loaded, and the device disconnects and re-connects. But under xHCI, it doesn't. Perhaps whatever loads the firmware doesn't recognize the device when it's under xHCI? Can you send me the output of `sudo lsusb -v` for when the device is under EHCI and when it's under xHCI? Also, please take a usbmon trace, as described by http://lxr.free-electrons.com/source/Documentation/usb/usbmon.txt Start the trace just before you plug the device in. Take one trace when the device under EHCI, and one when it's under xHCI. > Below is my host environment Which kernel are you running? > and I also attach log about plug in xhci and ehci. > ( as you can see in ehci log, the 3g modem can change to modem mode > successfully) > > 00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host > Controller (rev 04) (prog-if 30 [XHCI]) > Subsystem: Lenovo Device 21f7 > Flags: bus master, medium devsel, latency 0, IRQ 40 > Memory at f2600000 (64-bit, non-prefetchable) [size=64K] > Capabilities: <access denied> > Kernel driver in use: xhci_hcd > [20043.678076] usb 3-1: USB disconnect, device number 31 > [20050.235962] usb 1-1.2: new high-speed USB device number 16 using ehci-pci > [20050.334882] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1446 > [20050.337862] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0 > [20050.340685] usb 1-1.2: Product: HUAWEI Mobile > [20050.343022] usb 1-1.2: Manufacturer: HUAWEI Technology > [20050.347185] usb-storage 1-1.2:1.0: USB Mass Storage device detected > [20050.348408] scsi116 : usb-storage 1-1.2:1.0 > [20050.350633] usb-storage 1-1.2:1.1: USB Mass Storage device detected > [20050.353079] scsi117 : usb-storage 1-1.2:1.1 > [20051.350203] scsi 116:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 > [20051.354209] scsi 117:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 > [20051.357444] sr0: scsi-1 drive > [20051.359681] sr 116:0:0:0: Attached scsi CD-ROM sr0 > [20051.361846] sr 116:0:0:0: Attached scsi generic sg1 type 5 > [20051.364925] sd 117:0:0:0: Attached scsi generic sg2 type 0 > [20051.368804] sd 117:0:0:0: [sdb] Attached SCSI removable disk > [20051.462065] usb 1-1.2: USB disconnect, device number 16 > [20051.466012] scsi 117:0:0:0: rejecting I/O to offline device > [20051.468190] scsi 117:0:0:0: killing request > [20055.618056] usb 1-1.2: new high-speed USB device number 17 using ehci-pci > [20055.713401] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1436 > [20055.715448] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0 > [20055.717477] usb 1-1.2: Product: HUAWEI Mobile > [20055.719465] usb 1-1.2: Manufacturer: HUAWEI Technology > [20055.724692] usb-storage 1-1.2:1.0: USB Mass Storage device detected > [20055.727146] option 1-1.2:1.0: GSM modem (1-port) converter detected > [20055.729346] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0 > [20055.731406] usb-storage 1-1.2:1.1: USB Mass Storage device detected > [20055.735213] cdc_ether 1-1.2:1.1 wwan0: register 'cdc_ether' at usb-0000:00:1a.0-1.2, Mobile Broadband Network Device, 02:50:f3:00:00:00 > [20055.736548] usb-storage 1-1.2:1.3: USB Mass Storage device detected > [20055.738153] option 1-1.2:1.3: GSM modem (1-port) converter detected > [20055.739706] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1 > [20055.740660] usb-storage 1-1.2:1.4: USB Mass Storage device detected > [20055.741740] option 1-1.2:1.4: GSM modem (1-port) converter detected > [20055.743124] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2 > [20055.744105] usb-storage 1-1.2:1.5: USB Mass Storage device detected > [20055.745711] scsi122 : usb-storage 1-1.2:1.5 > [20055.747201] usb-storage 1-1.2:1.6: USB Mass Storage device detected > [20055.749722] scsi123 : usb-storage 1-1.2:1.6 > [20056.748638] scsi 122:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 > [20056.753896] scsi 123:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 > [20056.757543] sr0: scsi-1 drive > [20056.760088] sr 122:0:0:0: Attached scsi CD-ROM sr0 > [20056.761289] sr 122:0:0:0: Attached scsi generic sg1 type 5 > [20056.762580] sd 123:0:0:0: Attached scsi generic sg2 type 0 > [20056.769739] sd 123:0:0:0: [sdb] Attached SCSI removable disk > [20030.333022] usb 3-1: new high-speed USB device number 31 using xhci_hcd > [20030.355575] usb 3-1: New USB device found, idVendor=12d1, idProduct=1446 > [20030.357627] usb 3-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0 > [20030.359654] usb 3-1: Product: HUAWEI Mobile > [20030.361649] usb 3-1: Manufacturer: HUAWEI Technology > [20030.365767] usb-storage 3-1:1.0: USB Mass Storage device detected > [20030.368209] scsi114 : usb-storage 3-1:1.0 > [20030.370372] usb-storage 3-1:1.1: USB Mass Storage device detected > [20030.372697] scsi115 : usb-storage 3-1:1.1 > [20031.371542] scsi 114:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2 > [20031.376507] sr0: scsi-1 drive > [20031.378831] sr 114:0:0:0: Attached scsi CD-ROM sr0 > [20031.378975] scsi 115:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2 > [20031.383303] sr 114:0:0:0: Attached scsi generic sg1 type 5 > [20031.385041] sd 115:0:0:0: Attached scsi generic sg2 type 0 > [20031.389105] sd 115:0:0:0: [sdb] Attached SCSI removable disk > -- 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