declined or forgotten?

----- Forwarded message from MERIGHI Marcus <mcmer-open...@tor.at> -----

Date: Thu, 2 Dec 2010 12:06:01 +0100
From: MERIGHI Marcus <mcmer-open...@tor.at>
To: tech@openbsd.org
Subject: Re: ZTE MF112 HSUPA - report and patch for usbdevs, umsm.c, umsm.4

s...@spacehopper.org (Stuart Henderson), 2010.12.01 (Wed) 23:45 (CET):
> On 2010/12/01 22:55, MERIGHI Marcus wrote:
> > > > > Without the patches below the thingy attaches as umsm for a second,
> > > > > detaches and re-attaches as umass.
> > > > > After patching it attaches as umsm0, umsm1, umsm2, umsm3 and ucom0,
> > > > > ucom1, ucom2.
> > > > does it come back as the same id? the other ZTE devices apparently
> > > > come back differently.
> > >
> > > since I'm not sure what your question is aiming at I did the attach
> > > and patch dance once more and saved "usbdevs -v":
> > >
> > > on a snapshot of today, ergo before patching:
> > > first:
> > > umsm0 attach
> > > port 2 addr 2: full speed, power 500 mA, config 1,
> > >   ZTE WCDMA Technologies MSM(0x2000), ZTE,Incorporated(0x19d2),
> > >   rev 0.00, iSerialNumber P671A2ZTED010000
>
> that's alright then, the ID used for the initial attach is listed in
> usbdevs.
>
> > Index: sys/dev/usb/usbdevs
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/usb/usbdevs,v
> > retrieving revision 1.528
> > diff -u -r1.528 usbdevs
> > --- sys/dev/usb/usbdevs     30 Nov 2010 00:52:07 -0000      1.528
> > +++ sys/dev/usb/usbdevs     1 Dec 2010 21:47:03 -0000
> > @@ -3080,6 +3080,7 @@
> >  product ZTE CDMA_MSM               0x0001  CDMA Technologies MSM modem
> >  product ZTE MF633          0x0016  ZTE MF633 USUPA USB modem
> >  product ZTE MF637          0x0031  ZTE MF637 HSUPA USB modem
> > +product ZTE MF112          0x0117  ZTE MF112 HSUPA USB modem
> >  product ZTE K3565Z         0x0063  ZTE K3565-Z USB MSM modem
> >  product    ZTE UMASS_INSTALLER2    0x0103  ZTE USB MSM installer
> >  product ZTE UMASS_INSTALLER        0x2000  ZTE USB MSM installer
>
> within each vendor section, usbdevs is sorted by product ID,
> please keep it that way. otherwise ok with me.

Only usbdevs changed, modified ordering and modified/added comments.

Index: share/man/man4/umsm.4
===================================================================
RCS file: /cvs/src/share/man/man4/umsm.4,v
retrieving revision 1.64
diff -u -r1.64 umsm.4
--- share/man/man4/umsm.4       12 Oct 2010 21:08:08 -0000      1.64
+++ share/man/man4/umsm.4       1 Dec 2010 21:46:18 -0000
@@ -92,6 +92,7 @@
 .It Li "Vodafone Mobile Broadband K3765" Ta Ta USB
 .It Li "ZTE MF633" Ta Ta USB
 .It Li "ZTE MF637" Ta Ta USB
+.It Li "ZTE MF112" Ta Ta USB
 .El
 .Pp
 Devices suspected of being compatible are:
Index: sys/dev/usb/umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.68
diff -u -r1.68 umsm.c
--- sys/dev/usb/umsm.c  12 Oct 2010 21:08:08 -0000      1.68
+++ sys/dev/usb/umsm.c  1 Dec 2010 21:46:59 -0000
@@ -159,6 +159,7 @@
        {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_K3565Z }, 0},
        {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF633 }, 0},
        {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF637 }, 0},
+       {{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_MF112 }, DEV_UMASS4},

        {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_EXPRESSCARD }, 0},
        {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MERLINV620 }, 0},
Index: sys/dev/usb/usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.528
diff -u -r1.528 usbdevs
--- sys/dev/usb/usbdevs 30 Nov 2010 00:52:07 -0000      1.528
+++ sys/dev/usb/usbdevs 2 Dec 2010 10:59:09 -0000
@@ -32,7 +32,7 @@
  */

 /*
- * List of known USB vendors
+ * List of known USB vendors and their product IDs.
  *
  * Please note that these IDs do not do anything. Adding an ID here and
  * regenerating the usbdevs.h and usbdevs_data.h only makes a symbolic name
@@ -48,6 +48,8 @@
  *
  * You may have to add these defines to the respective probe routines to
  * make the device recognised by the appropriate device driver.
+ *
+ * Within each vendor section, this is sorted by product ID.
  */

 vendor UNKNOWN1                0x0053  Unknown vendor
@@ -3082,6 +3084,7 @@
 product ZTE MF637              0x0031  ZTE MF637 HSUPA USB modem
 product ZTE K3565Z             0x0063  ZTE K3565-Z USB MSM modem
 product        ZTE UMASS_INSTALLER2    0x0103  ZTE USB MSM installer
+product ZTE MF112              0x0117  ZTE MF112 HSUPA USB modem
 product ZTE UMASS_INSTALLER    0x2000  ZTE USB MSM installer
 product ZTE AC8700             0xfffe  AC8700 CDMA USB modem


----- End forwarded message -----

Reply via email to