Re: usb/138172: Additional dev id for u3g (Option mini PCIe)

2009-09-01 Thread Mike Tancsa
The following reply was made to PR usb/138172; it has been noted by GNATS.

From: Mike Tancsa m...@sentex.net
To: bug-follo...@freebsd.org, m...@sentex.ca
Cc:  
Subject: Re: usb/138172: Additional dev id for u3g (Option mini PCIe)
Date: Tue, 01 Sep 2009 10:52:00 -0400

 Here is an additional device ID for an Option 380 PCIe.  The U760 is 
 also in the diff below (http://www.freebsd.org/cgi/query-pr.cgi?pr=138138)
 
  ---Mike
 
 --- /tmp/usbdevs2009-09-01 10:36:23.0 -0400
 +++ usbdevs 2009-09-01 10:25:53.0 -0400
 @@ -1917,6 +1917,8 @@
   product OPTION GTICON322   0xd033  GlobeTrotter Icon322 storage
   product OPTION GTMAX36 0x6701  GlobeTrotter Max 3.6 Modem
   product OPTION GTMAXHSUPA  0x7001  GlobeTrotter HSUPA
 +product OPTION GTMAXHSUPAE 0x6901  GlobeTrotter HSUPA PCIe
 +product OPTION GTMAX380HSUPAE  0x7211  GlobeTrotter 380HSUPA PCIe
 
   /* OQO */
   product OQO WIFI01 0x0002  model 01 WiFi interface
 
 
 
 --- /tmp/u3g-orig.c 2009-09-01 10:37:15.0 -0400
 +++ u3g.c   2009-09-01 10:38:24.0 -0400
 @@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
 - * $FreeBSD: src/sys/dev/usb/u3g.c,v 1.24.2.5 2009/08/13 07:19:43 
 n_hibma Exp $
 + * $FreeBSD: src/sys/dev/usb/u3g.c,v 1.24.2.4 2009/07/09 15:29:26 
 n_hibma Exp $
*/
 
   /*
 @@ -134,6 +134,8 @@
  {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GT3GPLUS 
 },U3GSP_UMTS, U3GINIT_NONE },
  {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAX36 
 }, U3GSP_HSDPA,U3GINIT_NONE },
  {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAXHSUPA 
 },  U3GSP_HSDPA,U3GINIT_NONE },
 +   {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAXHSUPAE 
 }, U3GSP_HSDPA,U3GINIT_NONE },
 +   {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAX380HSUPAE 
 },  U3GSP_HSDPA,U3GINIT_NONE },
  {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_VODAFONEMC3G 
 },U3GSP_UMTS, U3GINIT_NONE },
  /* OEM: Qualcomm, Inc. */
  {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_STOR 
 },  U3GSP_CDMA, U3GINIT_ZTESTOR },
 @@ -144,6 +146,7 @@
  {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 
 },U3GSP_HSPA, U3GINIT_HUAWEI },
  /* OEM: Novatel */
  {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_CDMA_MODEM 
 },U3GSP_CDMA, U3GINIT_EJECT },
 +   {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_U760 
 },  U3GSP_CDMA, U3GINIT_EJECT },
  {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_ES620 
 }, U3GSP_UMTS, U3GINIT_EJECT },// XXX
  {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MC950D 
 },U3GSP_HSUPA,U3GINIT_EJECT },
  {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_U720 
 },  U3GSP_UMTS, U3GINIT_EJECT },// XXX
 
 
 # cu -l /dev/cuaU0.2
 Connected
 ati
 Manufacturer: Option N.V.
 Model: GTM380
 Revision: 2.12.0Hd (Date: May 27 2008, Time: 11:19:10)
 
 OK
 
 ucom0: Option N.V. Globetrotter HSUPA Modem, class 255/255, rev 
 1.10/0.00, addr 2 on uhub0
 ucom0: Interface 0 of 3, not in use
 ucom0:  Endpoint 0 of 3
 ucom0:  Endpoint 1 of 3
 ucom0: port=0 iface=0 in=0x83 out=0x3
 ucom0:  Endpoint 2 of 3
 ucom0: Interface 1 of 3, not in use
 ucom0:  Endpoint 0 of 2
 ucom0:  Endpoint 1 of 2
 ucom0: port=1 iface=1 in=0x84 out=0x4
 ucom0: Interface 2 of 3, not in use
 ucom0:  Endpoint 0 of 3
 ucom0:  Endpoint 1 of 3
 ucom0:  Endpoint 2 of 3
 ucom0: port=2 iface=2 in=0x82 out=0x2
 ucom0: configured 3 serial ports (U0.%d)
 
 
 # usbdevs -v
 Controller /dev/usb0:
 addr 1: full speed, self powered, config 1, OHCI root hub(0x), 
 AMD(0x), rev 1.00
   port 1 powered
   port 2 addr 2: full speed, power 500 mA, config 1, Globetrotter 
 HSUPA Modem(0x7211), Option N.V.(0x0af0), rev 0.00
   port 3 powered
   port 4 powered
 Controller /dev/usb1:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
 AMD(0x), rev 1.00
   port 1 powered
   port 2 powered
   port 3 powered
   port 4 powered
 
 The only odd quirk of this one is that cuaU0.0, cuaU0.1 do not work. 
 Everything needs to be done through .2 ?
 
 
  ---Mike
 
 
 
 Mike Tancsa,  tel +1 519 651 3400
 Sentex Communications,m...@sentex.net
 Providing Internet since 1994www.sentex.net
 Cambridge, Ontario Canada www.sentex.net/mike
 
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/138172: Additional dev id for u3g (Option mini PCIe)

2009-09-01 Thread Hans Petter Selasky
On Tuesday 01 September 2009 17:40:07 Mike Tancsa wrote:
 The following reply was made to PR usb/138172; it has been noted by GNATS.

 From: Mike Tancsa m...@sentex.net
 To: bug-follo...@freebsd.org, m...@sentex.ca
 Cc:
 Subject: Re: usb/138172: Additional dev id for u3g (Option mini PCIe)
 Date: Tue, 01 Sep 2009 10:52:00 -0400

  Here is an additional device ID for an Option 380 PCIe.  The U760 is
  also in the diff below (http://www.freebsd.org/cgi/query-pr.cgi?pr=138138)

   ---Mike

  --- /tmp/usbdevs2009-09-01 10:36:23.0 -0400
  +++ usbdevs 2009-09-01 10:25:53.0 -0400
  @@ -1917,6 +1917,8 @@
product OPTION GTICON322   0xd033  GlobeTrotter Icon322 storage
product OPTION GTMAX36 0x6701  GlobeTrotter Max 3.6 Modem
product OPTION GTMAXHSUPA  0x7001  GlobeTrotter HSUPA
  +product OPTION GTMAXHSUPAE 0x6901  GlobeTrotter HSUPA PCIe
  +product OPTION GTMAX380HSUPAE  0x7211  GlobeTrotter 380HSUPA PCIe

/* OQO */
product OQO WIFI01 0x0002  model 01 WiFi interface



  --- /tmp/u3g-orig.c 2009-09-01 10:37:15.0 -0400
  +++ u3g.c   2009-09-01 10:38:24.0 -0400
  @@ -16,7 +16,7 @@
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
 OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
  - * $FreeBSD: src/sys/dev/usb/u3g.c,v 1.24.2.5 2009/08/13 07:19:43
  n_hibma Exp $
  + * $FreeBSD: src/sys/dev/usb/u3g.c,v 1.24.2.4 2009/07/09 15:29:26
  n_hibma Exp $
 */

/*
  @@ -134,6 +134,8 @@
   {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GT3GPLUS
  },U3GSP_UMTS, U3GINIT_NONE },
   {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAX36
  }, U3GSP_HSDPA,U3GINIT_NONE },
   {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAXHSUPA
  },  U3GSP_HSDPA,U3GINIT_NONE },
  +   {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAXHSUPAE
  }, U3GSP_HSDPA,U3GINIT_NONE },
  +   {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAX380HSUPAE
  },  U3GSP_HSDPA,U3GINIT_NONE },
   {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_VODAFONEMC3G
  },U3GSP_UMTS, U3GINIT_NONE },
   /* OEM: Qualcomm, Inc. */
   {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_STOR
  },  U3GSP_CDMA, U3GINIT_ZTESTOR },
  @@ -144,6 +146,7 @@
   {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220
  },U3GSP_HSPA, U3GINIT_HUAWEI },
   /* OEM: Novatel */
   {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_CDMA_MODEM
  },U3GSP_CDMA, U3GINIT_EJECT },
  +   {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_U760
  },  U3GSP_CDMA, U3GINIT_EJECT },
   {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_ES620
  }, U3GSP_UMTS, U3GINIT_EJECT },// XXX
   {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MC950D
  },U3GSP_HSUPA,U3GINIT_EJECT },
   {{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_U720
  },  U3GSP_UMTS, U3GINIT_EJECT },// XXX


  # cu -l /dev/cuaU0.2
  Connected
  ati
  Manufacturer: Option N.V.
  Model: GTM380
  Revision: 2.12.0Hd (Date: May 27 2008, Time: 11:19:10)

  OK

  ucom0: Option N.V. Globetrotter HSUPA Modem, class 255/255, rev
  1.10/0.00, addr 2 on uhub0
  ucom0: Interface 0 of 3, not in use
  ucom0:  Endpoint 0 of 3
  ucom0:  Endpoint 1 of 3
  ucom0: port=0 iface=0 in=0x83 out=0x3
  ucom0:  Endpoint 2 of 3
  ucom0: Interface 1 of 3, not in use
  ucom0:  Endpoint 0 of 2
  ucom0:  Endpoint 1 of 2
  ucom0: port=1 iface=1 in=0x84 out=0x4
  ucom0: Interface 2 of 3, not in use
  ucom0:  Endpoint 0 of 3
  ucom0:  Endpoint 1 of 3
  ucom0:  Endpoint 2 of 3
  ucom0: port=2 iface=2 in=0x82 out=0x2
  ucom0: configured 3 serial ports (U0.%d)


  # usbdevs -v
  Controller /dev/usb0:
  addr 1: full speed, self powered, config 1, OHCI root hub(0x),
  AMD(0x), rev 1.00
port 1 powered
port 2 addr 2: full speed, power 500 mA, config 1, Globetrotter
  HSUPA Modem(0x7211), Option N.V.(0x0af0), rev 0.00
port 3 powered
port 4 powered
  Controller /dev/usb1:
  addr 1: high speed, self powered, config 1, EHCI root hub(0x),
  AMD(0x), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered

  The only odd quirk of this one is that cuaU0.0, cuaU0.1 do not work.
  Everything needs to be done through .2 ?


   ---Mike



Does your patch apply to 8+9-current ?

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/138172: Additional dev id for u3g (Option mini PCIe)

2009-09-01 Thread Mike Tancsa

At 11:55 AM 9/1/2009, Hans Petter Selasky wrote:

On Tuesday 01 September 2009 17:40:07 Mike Tancsa wrote:


Does your patch apply to 8+9-current ?



Here are the diffs for 8+9-current

I tested the Option mini-pci-express units. I dont have the novatel 
handy right now, but it should work


--- usbdevs.orig2009-09-01 15:39:55.0 -0400
+++ usbdevs 2009-09-01 15:40:32.0 -0400
@@ -1930,6 +1930,8 @@
 product OPTION GTMAX36 0x6701  GlobeTrotter Max 3.6 Modem
 product OPTION GTHSDPA 0x6971  GlobeTrotter HSDPA
 product OPTION GTMAXHSUPA  0x7001  GlobeTrotter HSUPA
+product OPTION GTMAXHSUPAE  0x6901  GlobeTrotter HSUPA PCIe
+product OPTION GTMAX380HSUPAE   0x7211  GlobeTrotter 380HSUPA PCIe

 /* OQO */
 product OQO WIFI01 0x0002  model 01 WiFi interface

--- u3g.c.prev  2009-08-13 08:44:26.0 -0400
+++ u3g.c   2009-09-01 16:16:45.0 -0400
@@ -180,6 +180,8 @@
U3G_DEV(OPTION, GTMAX36, 0),
U3G_DEV(OPTION, GTHSDPA, 0),
U3G_DEV(OPTION, GTMAXHSUPA, 0),
+   U3G_DEV(OPTION, GTMAXHSUPAE, 0),
+   U3G_DEV(OPTION, GTMAX380HSUPAE, 0),
U3G_DEV(OPTION, VODAFONEMC3G, 0),
/* OEM: Qualcomm, Inc. */
U3G_DEV(QUALCOMMINC, ZTE_STOR, U3GFL_SCSI_EJECT),
@@ -204,6 +206,7 @@
U3G_DEV(NOVATEL, X950D, 0),
U3G_DEV(NOVATEL, XU870, 0),
U3G_DEV(NOVATEL, ZEROCD, U3GFL_SCSI_EJECT),
+   U3G_DEV(NOVATEL, U760, U3GFL_SCSI_EJECT),
U3G_DEV(DELL, U740, 0),
/* OEM: Merlin */
U3G_DEV(MERLIN, V620, 0),



alix# usbconfig show_ifdrv
ugen0.1: OHCI root HUB AMD at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen0.1.0: uhub0: AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1
ugen1.1: EHCI root HUB AMD at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
ugen1.1.0: uhub1: AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1
ugen0.2: Globetrotter HSUPA Modem Option N.V. at usbus0, cfg=0 
md=HOST spd=FULL (12Mbps) pwr=ON

ugen0.2.0: u3g0: Data Interface
alix#


ugen0.2: Globetrotter HSUPA Modem Option N.V. at usbus0, cfg=0 
md=HOST spd=FULL (12Mbps) pwr=ON


  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0110
  bDeviceClass = 0x00ff
  bDeviceSubClass = 0x00ff
  bDeviceProtocol = 0x00ff
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0af0
  idProduct = 0x7211
  bcdDevice = 0x
  iManufacturer = 0x0001  Option N.V.
  iProduct = 0x0002  Globetrotter HSUPA Modem  
  iSerialNumber = 0x0004  Serial Number
  bNumConfigurations = 0x0001




ugen0.2: Globetrotter HSUPA Modem Option N.V. at usbus0, cfg=0 
md=HOST spd=FULL (12Mbps) pwr=ON



 Configuration index 0

bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x005f
bNumInterfaces = 0x0003
bConfigurationValue = 0x0001
iConfiguration = 0x  no string
bmAttributes = 0x00a0
bMaxPower = 0x00fa

Interface 0
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x
  bAlternateSetting = 0x
  bNumEndpoints = 0x0003
  bInterfaceClass = 0x00ff
  bInterfaceSubClass = 0x00ff
  bInterfaceProtocol = 0x00ff
  iInterface = 0x0003  Data Interface

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0083
bmAttributes = 0x0002
wMaxPacketSize = 0x0040
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0003
bmAttributes = 0x0002
wMaxPacketSize = 0x0040
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 2
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0085
bmAttributes = 0x0003
wMaxPacketSize = 0x0010
bInterval = 0x0080
bRefresh = 0x
bSynchAddress = 0x

  Additional Descriptor

  bLength = 0x03
  bDescriptorType = 0x24
  bDescriptorSubType = 0x03
   RAW dump:
   0x00 | 0x03, 0x24, 0x03



Interface 1
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x0001
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x00ff
  bInterfaceSubClass = 0x00ff
  bInterfaceProtocol = 0x00ff
  iInterface = 0x0003  Data Interface

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0084
bmAttributes = 0x0002
wMaxPacketSize = 0x0040
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0004
bmAttributes = 0x0002
wMaxPacketSize = 0x0040
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x


Interface 2
  bLength = 0x0009
  bDescriptorType = 0x0004
  

Re: usb/138172: Additional dev id for u3g (Option mini PCIe)

2009-09-01 Thread Hans Petter Selasky
On Tuesday 01 September 2009 22:40:25 Mike Tancsa wrote:
 usb/138172

Here is the commit:

http://perforce.freebsd.org/chv.cgi?CH=168061

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/138172: Additional dev id for u3g (Option mini PCIe)

2009-09-01 Thread Hans Petter Selasky
On Tuesday 01 September 2009 22:59:12 Mike Tancsa wrote:
 At 04:48 PM 9/1/2009, Hans Petter Selasky wrote:
 On Tuesday 01 September 2009 22:40:25 Mike Tancsa wrote:
   usb/138172
 
 Here is the commit:
 
 http://perforce.freebsd.org/chv.cgi?CH=168061

 Thanks!  Any chance it will hit the 2 trees ?  (the RELENG_7 version)
 as well as whats in perforce to RELENG_8 and HEAD ?

Hi,

After 8.0 is released it will go into 8+9 HEAD at least.

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/138172: Additional dev id for u3g (Option mini PCIe)

2009-09-01 Thread Mike Tancsa

At 04:48 PM 9/1/2009, Hans Petter Selasky wrote:

On Tuesday 01 September 2009 22:40:25 Mike Tancsa wrote:
 usb/138172

Here is the commit:

http://perforce.freebsd.org/chv.cgi?CH=168061


Thanks!  Any chance it will hit the 2 trees ?  (the RELENG_7 version) 
as well as whats in perforce to RELENG_8 and HEAD ?




--HPS



Mike Tancsa,  tel +1 519 651 3400
Sentex Communications,m...@sentex.net
Providing Internet since 1994www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org