on Sat, 18 Aug 2012 03:02:13 +0300, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > On Thu, Jul 26, 2012 at 05:51:59PM +0300, nirinA raseliarison wrote: >> hi Greg, >> >> Le Thu, 26 Jul 2012 01:04:08 +0300, Greg KH >> <gregkh@xxxxxxxxxxxxxxxxxxx> a >> écrit: >> >> >On Wed, Jul 25, 2012 at 12:51:34PM -0700, nirinA raseliarison wrote: >> >>hello there, >> >>i have an usb modem zte ev-do that i used with kernel from >> >>2.6.29 up to 3.5. >> >>since 3.5, i got the following message: >> >> >> >> [77496.664090] usb 5-2: udev 10, busnum 5, minor = 521 >> >> [77496.664097] usb 5-2: New USB device found, idVendor=19d2, >> >>idProduct=ffff >> >> [77496.664102] usb 5-2: New USB device strings: Mfr=1, >> >>Product=2, SerialNumber=0 >> >> [77496.664107] usb 5-2: Product: ZTE CDMA Tech >> >> [77496.664112] usb 5-2: Manufacturer: ZTE, Incorporated >> >> [77496.664226] usb 5-2: usb_probe_device >> >> [77496.664232] usb 5-2: configuration #1 chosen from 1 choice >> >> [77496.667119] usb 5-2: adding 5-2:1.0 (config #1, interface 0) >> >> [77496.670161] usbserial_generic 5-2:1.0: usb_probe_interface >> >> [77496.670169] usbserial_generic 5-2:1.0: >> >>usb_probe_interface - got id >> >> [77496.670177] usbserial_generic 5-2:1.0: The "generic" >> >>usb-serial driver is only for testing and >> >> one-off prototypes. >> >> [77496.670182] usbserial_generic 5-2:1.0: Tell >> >>linux-usb@xxxxxxxxxxxxxxx to add your device to a >> >> proper driver. >> >> [77496.670186] usbserial_generic 5-2:1.0: generic converter >> detected >> >> [77496.670276] usb 5-2: generic converter now attached to ttyUSB0 >> >> >> >>i would be nice to have a driver for this device in the kernel. >> >>the device is shipped with sources to build its modules. if i >> understand >> >>correctly thet are released under GPL, so i attached them below. >> >>this is portion of Makefile i used: >> >> >> >> obj-m := ztemt.o >> >> ztemt-objs := usb-serial.o bus.o generic.o ezusb.o zte_ev.o >> > >> >Ick, that's not really the "proper" way to support this device, but I >> >can take the file below and write a real driver for it. Can you test a >> >patch if I create it? >> >> yes, of course, i can test it. > > Very sorry for the delay, but I think I have a first cut at this. > > Can you try the patch attached to this mail, it was made against the > 3.6-rc2 kernel, but should apply cleanly to the 3.5 kernel and probably > older ones as well. > > Can you enable this driver and let me know if it works properly for you > or not? i've patched against 3.5.0 and it worked like a charm. below portion of dmesg when the device was plugged, did a few minutes of connexion and then unplugged. [ 1212.303779] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0100 [ 1212.303797] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 001803 0 ACK POWER sig=j CSC CONNECT [ 1212.303806] hub 1-0:1.0: port 8, status 0501, change 0001, 480 Mb/s [ 1212.407040] hub 1-0:1.0: debounce: port 8: total 100ms stable 100ms status 0x501 [ 1212.458311] ehci_hcd 0000:00:1d.7: port 8 full speed --> companion [ 1212.458318] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003801 0 ACK POWER OWNER sig=j CONNECT [ 1212.458323] hub 1-0:1.0: port 8 not reset yet, waiting 50ms [ 1212.509041] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003002 0 ACK POWER OWNER sig=se0 CSC [ 1212.509071] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0100 [ 1212.509081] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003002 0 ACK POWER OWNER sig=se0 CSC [ 1212.509090] hub 1-0:1.0: port 8, status 0100, change 0001, 12 Mb/s [ 1212.613064] hub 1-0:1.0: debounce: port 8: total 100ms stable 100ms status 0x100 [ 1212.704045] usb usb5: wakeup_rh (auto-start) [ 1212.704074] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1212.704086] uhci_hcd 0000:00:1d.3: port 2 portsc 0093,00 [ 1212.704094] hub 5-0:1.0: port 2, status 0101, change 0001, 12 Mb/s [ 1212.808044] hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101 [ 1212.859068] hub 5-0:1.0: port 2 not reset yet, waiting 50ms [ 1212.961053] usb 5-2: new full-speed USB device number 2 using uhci_hcd [ 1212.965069] usb 5-2: uhci_result_common: failed with status 440000 [ 1212.969066] usb 5-2: uhci_result_common: failed with status 440000 [ 1212.973068] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.075282] usb 5-2: device descriptor read/64, error -71 [ 1213.180066] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.184063] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.188070] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.290046] usb 5-2: device descriptor read/64, error -71 [ 1213.442073] hub 5-0:1.0: port 2 not reset yet, waiting 50ms [ 1213.544028] usb 5-2: new full-speed USB device number 3 using uhci_hcd [ 1213.547067] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.551070] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.555067] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.657030] usb 5-2: device descriptor read/64, error -71 [ 1213.762070] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.766065] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.770065] usb 5-2: uhci_result_common: failed with status 440000 [ 1213.872035] usb 5-2: device descriptor read/64, error -71 [ 1214.075034] usb 5-2: new full-speed USB device number 4 using uhci_hcd [ 1214.078064] usb 5-2: uhci_result_common: failed with status 440000 [ 1214.282067] usb 5-2: uhci_result_common: failed with status 440000 [ 1214.483028] usb 5-2: device not accepting address 4, error -71 [ 1214.585051] usb 5-2: new full-speed USB device number 5 using uhci_hcd [ 1214.589067] usb 5-2: uhci_result_common: failed with status 440000 [ 1214.793068] usb 5-2: uhci_result_common: failed with status 440000 [ 1214.994027] usb 5-2: device not accepting address 5, error -71 [ 1214.994052] hub 5-0:1.0: unable to enumerate USB device on port 2 [ 1214.994061] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1216.704074] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1216.704090] uhci_hcd 0000:00:1d.3: port 2 portsc 0093,00 [ 1216.704102] hub 5-0:1.0: port 2, status 0101, change 0001, 12 Mb/s [ 1216.808033] hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101 [ 1216.910072] usb 5-2: new full-speed USB device number 6 using uhci_hcd [ 1216.914069] usb 5-2: uhci_result_common: failed with status 440000 [ 1216.918061] usb 5-2: uhci_result_common: failed with status 440000 [ 1216.922067] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.024045] usb 5-2: device descriptor read/64, error -71 [ 1217.128068] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.132062] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.136061] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.238032] usb 5-2: device descriptor read/64, error -71 [ 1217.441041] usb 5-2: new full-speed USB device number 7 using uhci_hcd [ 1217.444067] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.448063] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.452062] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.554040] usb 5-2: device descriptor read/64, error -71 [ 1217.658072] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.662063] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.666068] usb 5-2: uhci_result_common: failed with status 440000 [ 1217.768037] usb 5-2: device descriptor read/64, error -71 [ 1217.920086] hub 5-0:1.0: unable to enumerate USB device on port 2 [ 1217.920100] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1218.896852] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0100 [ 1218.896870] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 001803 0 ACK POWER sig=j CSC CONNECT [ 1218.896882] hub 1-0:1.0: port 8, status 0501, change 0001, 480 Mb/s [ 1218.954048] usb usb5: suspend_rh (auto-stop) [ 1219.000022] hub 1-0:1.0: debounce: port 8: total 100ms stable 100ms status 0x501 [ 1219.051198] ehci_hcd 0000:00:1d.7: port 8 full speed --> companion [ 1219.051207] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003801 0 ACK POWER OWNER sig=j CONNECT [ 1219.051213] hub 1-0:1.0: port 8 not reset yet, waiting 50ms [ 1219.102041] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003002 0 ACK POWER OWNER sig=se0 CSC [ 1219.102069] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0100 [ 1219.102079] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003002 0 ACK POWER OWNER sig=se0 CSC [ 1219.102088] hub 1-0:1.0: port 8, status 0100, change 0001, 12 Mb/s [ 1219.204081] usb usb5: wakeup_rh (auto-start) [ 1219.206031] hub 1-0:1.0: debounce: port 8: total 100ms stable 100ms status 0x100 [ 1219.206038] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1219.206048] uhci_hcd 0000:00:1d.3: port 2 portsc 0093,00 [ 1219.206057] hub 5-0:1.0: port 2, status 0101, change 0001, 12 Mb/s [ 1219.310032] hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101 [ 1219.412034] usb 5-2: new full-speed USB device number 9 using uhci_hcd [ 1219.415099] usb 5-2: uhci_result_common: failed with status 440000 [ 1219.419096] usb 5-2: uhci_result_common: failed with status 440000 [ 1219.423096] usb 5-2: uhci_result_common: failed with status 440000 [ 1219.525038] usb 5-2: device descriptor read/64, error -71 [ 1219.629101] usb 5-2: uhci_result_common: failed with status 440000 [ 1219.633097] usb 5-2: uhci_result_common: failed with status 440000 [ 1219.637097] usb 5-2: uhci_result_common: failed with status 440000 [ 1219.739035] usb 5-2: device descriptor read/64, error -71 [ 1219.942014] usb 5-2: new full-speed USB device number 10 using uhci_hcd [ 1219.945098] usb 5-2: uhci_result_common: failed with status 440000 [ 1219.949097] usb 5-2: uhci_result_common: failed with status 440000 [ 1219.953097] usb 5-2: uhci_result_common: failed with status 440000 [ 1220.055035] usb 5-2: device descriptor read/64, error -71 [ 1220.292108] usb 5-2: default language 0x0409 [ 1220.307110] usb 5-2: udev 10, busnum 5, minor = 521 [ 1220.307117] usb 5-2: New USB device found, idVendor=19d2, idProduct=fff5 [ 1220.307122] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1220.307127] usb 5-2: Product: USB Storage [ 1220.307131] usb 5-2: Manufacturer: ZTE, Incorporated [ 1220.307135] usb 5-2: SerialNumber: 000000000002 [ 1220.307241] usb 5-2: usb_probe_device [ 1220.307248] usb 5-2: configuration #1 chosen from 1 choice [ 1220.310116] usb 5-2: adding 5-2:1.0 (config #1, interface 0) [ 1220.310198] usb-storage 5-2:1.0: usb_probe_interface [ 1220.310204] usb-storage 5-2:1.0: usb_probe_interface - got id [ 1220.310282] scsi2 : usb-storage 5-2:1.0 [ 1220.310378] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1220.996303] usb-storage 5-2:1.0: disconnect by usbfs [ 1220.997311] usbfs 5-2:1.0: disconnect by usbfs [ 1220.997326] uhci_hcd 0000:00:1d.3: shutdown urb ffff88002d150300 ep5out-bulk [ 1220.998158] usb 5-2: usbfs: process 2301 (usb_modeswitch) did not claim interface 0 before use [ 1220.999117] usb 5-2: usbfs: process 2301 (usb_modeswitch) did not claim interface 0 before use [ 1221.000101] usb 5-2: uhci_result_common: failed with status 440000 [ 1221.001102] usb 5-2: uhci_result_common: failed with status 440000 [ 1221.002102] usb 5-2: uhci_result_common: failed with status 440000 [ 1221.204063] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1221.204076] uhci_hcd 0000:00:1d.3: port 2 portsc 008a,00 [ 1221.204089] hub 5-0:1.0: port 2, status 0100, change 0003, 12 Mb/s [ 1221.204094] usb 5-2: USB disconnect, device number 10 [ 1221.204099] usb 5-2: unregistering device [ 1221.204103] usb 5-2: unregistering interface 5-2:1.0 [ 1221.204200] usb 5-2: usb_disable_device nuking all URBs [ 1221.308035] hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x100 [ 1221.998602] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0100 [ 1221.998620] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 001803 0 ACK POWER sig=j CSC CONNECT [ 1221.998631] hub 1-0:1.0: port 8, status 0501, change 0001, 480 Mb/s [ 1222.102029] hub 1-0:1.0: debounce: port 8: total 100ms stable 100ms status 0x501 [ 1222.153189] ehci_hcd 0000:00:1d.7: port 8 full speed --> companion [ 1222.153202] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003801 0 ACK POWER OWNER sig=j CONNECT [ 1222.153206] hub 1-0:1.0: port 8 not reset yet, waiting 50ms [ 1222.204051] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003002 0 ACK POWER OWNER sig=se0 CSC [ 1222.204076] hub 1-0:1.0: state 7 ports 8 chg 0000 evt 0100 [ 1222.204086] ehci_hcd 0000:00:1d.7: GetStatus port:8 status 003002 0 ACK POWER OWNER sig=se0 CSC [ 1222.204095] hub 1-0:1.0: port 8, status 0100, change 0001, 12 Mb/s [ 1222.308031] hub 1-0:1.0: debounce: port 8: total 100ms stable 100ms status 0x100 [ 1222.308037] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1222.308048] uhci_hcd 0000:00:1d.3: port 2 portsc 0093,00 [ 1222.308057] hub 5-0:1.0: port 2, status 0101, change 0001, 12 Mb/s [ 1222.412031] hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101 [ 1222.514034] usb 5-2: new full-speed USB device number 11 using uhci_hcd [ 1222.651106] usb 5-2: default language 0x0409 [ 1222.661108] usb 5-2: udev 11, busnum 5, minor = 522 [ 1222.661114] usb 5-2: New USB device found, idVendor=19d2, idProduct=ffff [ 1222.661118] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1222.661123] usb 5-2: Product: ZTE CDMA Tech [ 1222.661127] usb 5-2: Manufacturer: ZTE, Incorporated [ 1222.661223] usb 5-2: usb_probe_device [ 1222.661229] usb 5-2: configuration #1 chosen from 1 choice [ 1222.664134] usb 5-2: adding 5-2:1.0 (config #1, interface 0) [ 1222.667206] usb 5-2: adding 5-2:1.1 (config #1, interface 1) [ 1222.669182] usb 5-2: adding 5-2:1.2 (config #1, interface 2) [ 1222.671181] usb 5-2: adding 5-2:1.3 (config #1, interface 3) [ 1241.273931] usbcore: registered new interface driver usbserial [ 1241.274568] usbcore: registered new interface driver usbserial_generic [ 1241.274714] USB Serial support registered for generic [ 1241.274728] usbserial: USB Serial Driver core [ 1241.285121] usbcore: registered new interface driver zte_ev [ 1241.285142] USB Serial support registered for zte_ev [ 1241.285154] zte_ev 5-2:1.0: usb_probe_interface [ 1241.285158] zte_ev 5-2:1.0: usb_probe_interface - got id [ 1241.285163] zte_ev 5-2:1.0: zte_ev converter detected [ 1241.285223] usb 5-2: zte_ev converter now attached to ttyUSB0 [ 1241.285235] zte_ev 5-2:1.1: usb_probe_interface [ 1241.285237] zte_ev 5-2:1.1: usb_probe_interface - got id [ 1241.285240] zte_ev 5-2:1.1: zte_ev converter detected [ 1241.285275] usb 5-2: zte_ev converter now attached to ttyUSB1 [ 1241.285282] zte_ev 5-2:1.2: usb_probe_interface [ 1241.285284] zte_ev 5-2:1.2: usb_probe_interface - got id [ 1241.285288] zte_ev 5-2:1.2: zte_ev converter detected [ 1241.285328] usb 5-2: zte_ev converter now attached to ttyUSB2 [ 1241.285335] zte_ev 5-2:1.3: usb_probe_interface [ 1241.285337] zte_ev 5-2:1.3: usb_probe_interface - got id [ 1241.285340] zte_ev 5-2:1.3: zte_ev converter detected [ 1241.285375] usb 5-2: zte_ev converter now attached to ttyUSB3 [ 1283.082697] PPP generic driver version 2.4.2 [ 1283.426821] PPP BSD Compression module registered [ 1283.475027] PPP Deflate Compression module registered [ 1674.269327] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead. [ 1888.072421] usb 5-2: uhci_result_common: failed with status 440000 [ 1888.074411] usb 5-2: uhci_result_common: failed with status 440000 [ 1888.204084] hub 5-0:1.0: state 7 ports 2 chg 0000 evt 0004 [ 1888.204100] uhci_hcd 0000:00:1d.3: port 2 portsc 008a,00 [ 1888.204114] hub 5-0:1.0: port 2, status 0100, change 0003, 12 Mb/s [ 1888.204120] usb 5-2: USB disconnect, device number 11 [ 1888.204125] usb 5-2: unregistering device [ 1888.204130] usb 5-2: unregistering interface 5-2:1.0 [ 1888.204318] zte_ev ttyUSB0: zte_ev converter now disconnected from ttyUSB0 [ 1888.204330] zte_ev 5-2:1.0: device disconnected [ 1888.204346] usb 5-2: unregistering interface 5-2:1.1 [ 1888.204419] zte_ev ttyUSB1: zte_ev converter now disconnected from ttyUSB1 [ 1888.204433] zte_ev 5-2:1.1: device disconnected [ 1888.204448] usb 5-2: unregistering interface 5-2:1.2 [ 1888.204514] zte_ev ttyUSB2: zte_ev converter now disconnected from ttyUSB2 [ 1888.204527] zte_ev 5-2:1.2: device disconnected [ 1888.204542] usb 5-2: unregistering interface 5-2:1.3 [ 1888.204609] zte_ev ttyUSB3: zte_ev converter now disconnected from ttyUSB3 [ 1888.204622] zte_ev 5-2:1.3: device disconnected [ 1888.204641] usb 5-2: usb_disable_device nuking all URBs [ 1888.308041] hub 5-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x100 [ 1889.454075] usb usb5: suspend_rh (auto-stop) > > thanks, > > greg k-h > regards, -- nirinA -- 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