Re: usb/154127: device IDs for MC547 u3g modem

2011-02-26 Thread eadler
Synopsis: device IDs for MC547 u3g modem

State-Changed-From-To: open-patched
State-Changed-By: eadler
State-Changed-When: Sat Feb 26 21:17:45 EST 2011
State-Changed-Why: 
Fixed in HEAD

http://www.freebsd.org/cgi/query-pr.cgi?pr=154127
___
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


usb/154127: device IDs for MC547 u3g modem

2011-01-18 Thread mike tancsa

Number: 154127
Category:   usb
Synopsis:   device IDs for MC547 u3g modem
Confidential:   no
Severity:   non-critical
Priority:   low
Responsible:freebsd-usb
State:  open
Quarter:
Keywords:   
Date-Required:
Class:  change-request
Submitter-Id:   current-users
Arrival-Date:   Wed Jan 19 00:40:07 UTC 2011
Closed-Date:
Last-Modified:
Originator: mike tancsa
Release:RELENG_8 Jan 17 2011
Organization:
Sentex 
Environment:
8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #11: Mon Jan 17 10:44:25 EST 2011 i386
Description:
Bell Canada is selling a new Ovation/Novatel 3G modem.  NOVATEL MC547.  The 
following two patches add support for the device

diff  -u usbdevs.orig usbdevs
--- usbdevs.orig2011-01-17 10:30:36.0 -0500
+++ usbdevs 2011-01-17 11:33:06.0 -0500
@@ -2388,6 +2388,7 @@
 product NOVATEL ZEROCD20x5030  Novatel ZeroCD
 product NOVATEL U727_2 0x5100  Merlin U727 CDMA
 product NOVATEL U760   0x6000  Novatel U760
+product NOVATEL MC547  0x7042  Novatel MC547
 product NOVATEL MC760  0x6002  Novatel MC760
 product NOVATEL2 FLEXPACKGPS   0x0100  NovAtel FlexPack GPS receiver

--- u3g.c   2010-12-02 21:34:53.0 -0500
+++ /tmp/u3g.c  2011-01-18 13:48:23.0 -0500
@@ -65,7 +65,7 @@
#include

#ifdef USB_DEBUG
-static int u3g_debug = 0;
+static int u3g_debug = 1;

SYSCTL_NODE(_hw_usb, OID_AUTO, u3g, CTLFLAG_RW, 0, USB 3g);
SYSCTL_INT(_hw_usb_u3g, OID_AUTO, debug, CTLFLAG_RW,
@@ -302,6 +302,7 @@
U3G_DEV(NOVATEL, EU730, 0),
U3G_DEV(NOVATEL, EU740, 0),
U3G_DEV(NOVATEL, EU870D, 0),
+   U3G_DEV(NOVATEL, MC547, 0),
U3G_DEV(NOVATEL, MC760, 0),
U3G_DEV(NOVATEL, MC950D, 0),
U3G_DEV(NOVATEL, U720, 0),
How-To-Repeat:
n/a
Fix:
The above device id and patch to u3g.c will do the trick!

ugen1.3: Novatel Wireless, Inc. at usbus1
u3g_attach: sc=0xc2d83000
u3g0: Novatel Wireless, Inc. Novatel Wireless HSPA, class 0/0, rev 2.00/0.00, 
addr 3 on usbus1
u3g0: Found 5 ports.


ugen1.3: Novatel Wireless HSPA Novatel Wireless, Inc. at usbus1, cfg=0 
md=HOST spd=HIGH (480Mbps) pwr=ON

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x 
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x1410 
  idProduct = 0x7042 
  bcdDevice = 0x 
  iManufacturer = 0x0003  Novatel Wireless, Inc.
  iProduct = 0x0002  Novatel Wireless HSPA
  iSerialNumber = 0x0004  123456789012341
  bNumConfigurations = 0x0001 




ugen1.3: Novatel Wireless HSPA Novatel Wireless, Inc. at usbus1, cfg=0 
md=HOST spd=HIGH (480Mbps) pwr=ON


 Configuration index 0

bLength = 0x0009 
bDescriptorType = 0x0002 
wTotalLength = 0x00a1 
bNumInterfaces = 0x0006 
bConfigurationValue = 0x0001 
iConfiguration = 0x0001  Novatel Configuration
bmAttributes = 0x00e0 
bMaxPower = 0x00fa 

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

 Endpoint 0
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0081  IN
bmAttributes = 0x0003  INTERRUPT
wMaxPacketSize = 0x0040 
bInterval = 0x0005 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 1
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0082  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x0020 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 2
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0001  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x0020 
bRefresh = 0x 
bSynchAddress = 0x 


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

 Endpoint 0
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0083  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x0020 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 1
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0002  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x0020 
bRefresh = 0x 
bSynchAddress = 0x 


Interface 2
  bLength = 0x0009 
  bDescriptorType = 0x0004