On Sat, Aug 18, 2012 at 07:57:21AM -0700, nirinA raseliarison wrote: > 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. Wonderful, thanks for testing, I'll queue it up for the 3.7 kernel release after I clean up the debugging code a bit. greg k-h -- 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