Re: usb/129173: [uplcom] [patch] Add support for Corega CG-USBRS232R as a serial port

2008-11-26 Thread linimon
Old Synopsis: Add support for Corega CG-USBRS232R as a serial port
New Synopsis: [uplcom] [patch] Add support for Corega CG-USBRS232R as a serial 
port

Responsible-Changed-From-To: freebsd-bugs-freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Wed Nov 26 09:34:41 UTC 2008
Responsible-Changed-Why: 
Over to maintainer(s).

http://www.freebsd.org/cgi/query-pr.cgi?pr=129173
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Device IDs for HP hs2300 HSDPA modem

2008-11-26 Thread Michael
Hi,

my notebook carries a hp2300 HSDPA modem, which is actually an OEM
Sierra Wireless MC8775 device.
I attached patches to apply in /usr/src.

I made the entry look exactly like the one for the MC8775 device, but
I'm wondering if this shouldn't say  U3GSP_HSPA instead of U3GSP_UMTS
for all of them, since this device should be HSDPA (see
http://www.sierrawireless.com/product/mc8775.aspx).  I can't tell right
now, because I only have a UMTS enabled SIM (will get HSDPA in a few
days - hopefully). UMTS works okay using these patches. What do you think?

I also think it would be good to add this device to usb2 (last time I
tried usb2 it crashed my machine, but is has been a while),
I made two patches for usb2 as well, they compile fine, but no time to
test them at the moment (also attached).

br
michael

--- sys/dev/usb/usbdevs~2008-11-17 03:24:02.0 +0100
+++ sys/dev/usb/usbdevs 2008-11-17 03:24:02.0 +0100
@@ -1429,6 +1429,7 @@
 product HP OJ4215  0x3d11  OfficeJet 4215
 product HP HN210E  0x811c  Ethernet HN210E
 product HP2 C500   0x6002  PhotoSmart C500
+product HP HS2300  0x1e1d  HP hs2300 HSDPA (aka MC8775)
 
 /* HTC products */
 product HTC WINMOBILE  0x00ce  HTC USB Sync
--- sys/dev/usb/u3g.c~  2008-11-17 03:29:06.0 +0100
+++ sys/dev/usb/u3g.c   2008-11-17 03:29:06.0 +0100
@@ -181,6 +181,10 @@
{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8765 },  
U3GSP_UMTS, U3GFL_NONE },   // XXX
{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_AC875U },  
U3GSP_UMTS, U3GFL_NONE },   // XXX
{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8775_2 },
U3GSP_UMTS, U3GFL_NONE },   // XXX
+
+   /* OEM Sierra MC8775 */
+   {{ USB_VENDOR_HP, USB_PRODUCT_HP_HS2300 },  
U3GSP_UMTS, U3GFL_NONE },   // XXX
+
{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8780 },  
U3GSP_UMTS, U3GFL_NONE },   // XXX
{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8781 },  
U3GSP_UMTS, U3GFL_NONE },   // XXX
{{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_TRUINSTALL },  
U3GSP_UMTS, U3GFL_SIERRA_INIT },// Sierra TruInstaller device ID
--- sys/dev/usb2/include/usb2_devid.h~  2008-11-26 16:33:43.0 +0100
+++ sys/dev/usb2/include/usb2_devid.h   2008-11-26 16:33:43.0 +0100
@@ -1433,6 +1433,7 @@
 #defineUSB_PRODUCT_HP_P11000x3102  /* Photosmart P1100 */
 #defineUSB_PRODUCT_HP_HN210E   0x811c  /* Ethernet HN210E */
 #defineUSB_PRODUCT_HP2_C5000x6002  /* PhotoSmart C500 */
+#defineUSB_PRODUCT_HP_HS2300   0x1e1d  /* HS2300 HSDPA (Sierra 
Wireless OEM MC8775) */
 
 /* HTC products */
 #defineUSB_PRODUCT_HTC_WINMOBILE   0x00ce  /* HTC USB Sync 
*/
--- sys/dev/usb2/include/usb2_devtable.h~   2008-11-26 16:34:56.0 
+0100
+++ sys/dev/usb2/include/usb2_devtable.h2008-11-26 16:34:56.0 
+0100
@@ -5981,6 +5981,12 @@
MC8755 HSDPA,
},
{
+   USB_VENDOR_HP, USB_PRODUCT_HP_HS2300,
+   0,
+   Hewlett Packard,
+   HS2300 HSDPA,
+   },
+   {
USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8775_2,
0,
Sierra Wireless,
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Device IDs for HP hs2300 HSDPA modem

2008-11-26 Thread Hans Petter Selasky
On Wednesday 26 November 2008, Michael wrote:
 +
 +   /* OEM Sierra MC8775 */
 +   {{ USB_VENDOR_HP, USB_PRODUCT_HP_HS2300
 },  U3GSP_UMTS, U3GFL_NONE },   // XXX +

The ID table in USB2 has been moved to:

core/usb2_msctest.c

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


Re: Device IDs for HP hs2300 HSDPA modem

2008-11-26 Thread Michael
Hans Petter Selasky wrote:
 On Wednesday 26 November 2008, Michael wrote:
   
 +
 +   /* OEM Sierra MC8775 */
 +   {{ USB_VENDOR_HP, USB_PRODUCT_HP_HS2300
 },  U3GSP_UMTS, U3GFL_NONE },   // XXX +
 

 The ID table in USB2 has been moved to:

 core/usb2_msctest.c

 --HPS
   
When? I have a 10 day old checkout here, and the sierra wireless device
appears in core/usbdevs, include/usb2_devid.h include/usb2_devtable.h
and serial/ugensa2.c. Any hint were to find details about what to put
where (seems like amoving target :)
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Device IDs for HP hs2300 HSDPA modem

2008-11-26 Thread Hans Petter Selasky
On Wednesday 26 November 2008, Michael wrote:
 Hans Petter Selasky wrote:
  On Wednesday 26 November 2008, Michael wrote:
  +
  +   /* OEM Sierra MC8775 */
  +   {{ USB_VENDOR_HP, USB_PRODUCT_HP_HS2300
  },  U3GSP_UMTS, U3GFL_NONE },   // XXX +
 
  The ID table in USB2 has been moved to:
 
  core/usb2_msctest.c
 
  --HPS

 When? I have a 10 day old checkout here, and the sierra wireless device
 appears in core/usbdevs, include/usb2_devid.h include/usb2_devtable.h
 and serial/ugensa2.c. Any hint were to find details about what to put
 where (seems like amoving target :)

Do you have serial/u3g2.c ?

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


Re: Device IDs for HP hs2300 HSDPA modem

2008-11-26 Thread Michael
Sorry, this contains some off-topic questions, maybe you have answers
anyway...

Hans Petter Selasky wrote:
 On Wednesday 26 November 2008, Michael wrote:
   
 Hans Petter Selasky wrote:
 
 On Wednesday 26 November 2008, Michael wrote:
   
 +
 +   /* OEM Sierra MC8775 */
 +   {{ USB_VENDOR_HP, USB_PRODUCT_HP_HS2300
 },  U3GSP_UMTS, U3GFL_NONE },   // XXX +
 
 The ID table in USB2 has been moved to:

 core/usb2_msctest.c

 --HPS
   
 When? I have a 10 day old checkout here, and the sierra wireless device
 appears in core/usbdevs, include/usb2_devid.h include/usb2_devtable.h
 and serial/ugensa2.c. Any hint were to find details about what to put
 where (seems like amoving target :)
 

 Do you have serial/u3g2.c ?

 --HPS
   
Nope. I used csup to get HEAD on the 15th. CVSWeb says that u3g2.c has
been checked in 33 hours ago. I would assume that using cvs isn't really
recommended for current anymore. What is the best way to follow current
nowadays (SVN/perforce)? My problem is, that I'm actually performing
work on this machine, so I'm not too keen to upgrade constantly (but I
required current for various devices) and usb1 works okay right now. So
maybe somebody can just bring in the devive ids into current that are
proven to work in USB1 (which works okay for me right now), since
obviously I'm not authorized to submit changes anyway - if I have some
extra time  I might checkout the usb2 changes of the last couple of
weeks and test if it actually works  with this device entry and report
back to you. Who is repsonsible for checking in the patches to usb1?

Btw, are there any advantages of using USB2 in terms of power management
on a laptop (even with no external devices attached)? (this might
actually motivate me to play a little bit more with it - right now the
overall power consumption is about 40% higher compared to using products
made in  Redmond). I'm also developing a special acpi driver for HP
machines right now I will most likely submit in a few weeks. Do you
think it is appropriate to submit this to freebsd-acpi for review?

michael

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


Re: Device IDs for HP hs2300 HSDPA modem

2008-11-26 Thread Hans Petter Selasky
On Wednesday 26 November 2008, Michael wrote:
 Sorry, this contains some off-topic questions, maybe you have answers
 anyway...

 Hans Petter Selasky wrote:
  On Wednesday 26 November 2008, Michael wrote:
  Hans Petter Selasky wrote:
  On Wednesday 26 November 2008, Michael wrote:
  +
  +   /* OEM Sierra MC8775 */
  +   {{ USB_VENDOR_HP, USB_PRODUCT_HP_HS2300
  },  U3GSP_UMTS, U3GFL_NONE },   // XXX
  +
 
  The ID table in USB2 has been moved to:
 
  core/usb2_msctest.c
 
  --HPS
 
  When? I have a 10 day old checkout here, and the sierra wireless device
  appears in core/usbdevs, include/usb2_devid.h include/usb2_devtable.h
  and serial/ugensa2.c. Any hint were to find details about what to put
  where (seems like amoving target :)
 
  Do you have serial/u3g2.c ?
 
  --HPS

 Nope. I used csup to get HEAD on the 15th. CVSWeb says that u3g2.c has
 been checked in 33 hours ago. I would assume that using cvs isn't really
 recommended for current anymore. What is the best way to follow current
 nowadays (SVN/perforce)? My problem is, that I'm actually performing
 work on this machine, so I'm not too keen to upgrade constantly (but I
 required current for various devices) and usb1 works okay right now. So
 maybe somebody can just bring in the devive ids into current that are
 proven to work in USB1 (which works okay for me right now), since
 obviously I'm not authorized to submit changes anyway - if I have some
 extra time  I might checkout the usb2 changes of the last couple of
 weeks and test if it actually works  with this device entry and report
 back to you. Who is repsonsible for checking in the patches to usb1?

Hi Michael,

I think SVN is more up to date. Just give it some time and CVS will be updated 
aswell.


 Btw, are there any advantages of using USB2 in terms of power management
 on a laptop (even with no external devices attached)?

Not yet. Probably I will add some simple power management support after 
new-year. Be aware that many USB devices have broken suspend/resume support 
and can fail, so leaving the power on is sometimes better.

When no devices are attached, I am going to add support so that the HC is 
turned off. That will save some power.

Remember that suspend/resume cycles introduce extra latency getting the system 
up and running again.

 (this might 
 actually motivate me to play a little bit more with it - right now the
 overall power consumption is about 40% higher compared to using products
 made in  Redmond). 

 I'm also developing a special acpi driver for HP 
 machines right now I will most likely submit in a few weeks. Do you
 think it is appropriate to submit this to freebsd-acpi for review?

Yes, and CC Nate Lawson [EMAIL PROTECTED]

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


Re: Device IDs for HP hs2300 HSDPA modem

2008-11-26 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Hans Petter Selasky [EMAIL PROTECTED] writes:
: I think SVN is more up to date. Just give it some time and CVS will
: be updated aswell.

The lag between these two is measure in minutes, at most  If that
isn't the case, we need to know...

Warner
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]