Re: usb/131521: Registering Belkin UPS to usb_quirks.c

2010-10-15 Thread John Bayly
 I've just checked 8.1 on my VM. Apart from the initial confusion of 
trying to find usb_quirks.c, I've checked and have found that all the 
devices that need to be added to 7.3 need to be added to 8.1 too.
I've created patches for usbdevs & quirk/usb_quirk.c, and have 
successfully compiled a GENERIC kernel using them.


John

On 14/10/2010 22:56, Hans Petter Selasky wrote:

On Thursday 14 October 2010 18:20:10 John Bayly wrote:

The following reply was made to PR usb/131521; it has been noted by GNATS.

From: John Bayly
To: bug-follo...@freebsd.org, n...@smartfruit.com
Cc:
Subject: Re: usb/131521: Registering Belkin UPS to usb_quirks.c
Date: Thu, 14 Oct 2010 17:12:20 +0100

  This is a multi-part message in MIME format.
  --040308070403080503030505
  Content-Type: text/plain; charset=ISO-8859-1; format=flowed
  Content-Transfer-Encoding: 7bit

Rather embarrassing: I was composing the previous mail while the
  kernel was compiling to make sure everything was ok, and managed to hit
  send. Typically there's a mistake in the patches. Please ignore the
  preceding two. The attached patches compile properly, and on boot my
  Belkin F6C120UNV is detected as /dev/ugen0 instead of /dev/uhid0

  John

Is this also a problem on FreeBSD 8+ ?

--HPS


--
John Bayly
Systems Administrator
--
TipsTrade Ltd.

16 Wornal Park,
Menmarsh Road,
Worminghall,
Bucks.
HP18 9JX

T: +44 (0)1844 337 326 (Direct)
M: +44 (0)7787 727 934
F: +44 (0)1844 337 337
E: john.ba...@tipstrade.net

E-Mail Disclaimer

Whilst TipsTrade Ltd. believes that the information is correct at the
date of this e-mail, no warranty or representation is given to this effect
and no responsibility can be accepted by TipsTrade Ltd. to any end users
for any action taken on the basis of the information.

The information contained in this electronic transmission is strictly
confidential and may be legally privileged.  It is  intended solely for the
addressee.  If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on this
is prohibited and may be unlawful. Please treat our information in
confidence, as you would expect us to treat yours.

E-mail is an inherently insecure form of communication and we do not accept
liability for any unintentional damage caused to a recipient's system by
this e-mail message and/or its attachments or for any unauthorised access to
or interference with this e-mail that may occur.

If you have received this e-mail in error, please notify the Systems
Manager: mail...@tipstrade.net

--- /usr/src/sys/dev/usb/quirk/usb_quirk.c.orig 2010-06-14 03:09:06.0 
+0100
+++ /usr/src/sys/dev/usb/quirk/usb_quirk.c  2010-09-09 17:45:00.0 
+0100
@@ -109,13 +109,46 @@
USB_QUIRK(XEROX, WCM15, 0x, 0x, UQ_BROKEN_BIDIR),
/* Devices which should be ignored by uhid */
USB_QUIRK(APC, UPS, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(BELKIN, F6H375USB, 0x, 0x, UQ_HID_IGNORE),
USB_QUIRK(BELKIN, F6C550AVR, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(BELKIN, F6C1250TWRK, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(BELKIN, F6C1500TWRK, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(BELKIN, F6C900UNV, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(BELKIN, F6C100UNV, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(BELKIN, F6C120UNV, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(BELKIN, F6C800UNV, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(BELKIN, F6C1100UNV, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(CYBERPOWER, BC900D, 0x, 0x, UQ_HID_IGNORE),
USB_QUIRK(CYBERPOWER, 1500CAVRLCD, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(CYBERPOWER, OR2200LCDRM2U, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(DELL2, VARIOUS_UPS, 0x, 0x, UQ_HID_IGNORE),
USB_QUIRK(DELORME, EARTHMATE, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(HP, T500, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(HP, T750, 0x, 0x, UQ_HID_IGNORE),
USB_QUIRK(ITUNERNET, USBLCD2X20, 0x, 0x, UQ_HID_IGNORE),
USB_QUIRK(ITUNERNET, USBLCD4X20, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(LIEBERT, VARIOUS_UPS, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(LIEBERT2, POWERSURE_PSA, 0x, 0x, UQ_HID_IGNORE),
USB_QUIRK(MGE, UPS1, 0x, 0x, UQ_HID_IGNORE),
USB_QUIRK(MGE, UPS2, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(POWERCOM, IMPERIAL_SERIES, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(POWERCOM, SMART_KING_PRO, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(POWERCOM, WOW , 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(POWERCOM, VANGUARD, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(POWERCOM, BLACK_KNIGHT_PRO, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(TRIPPLITE2, OMNIVS1000, 0x, 0x, UQ_HID_IGNORE),
+   USB_QUIRK(TRIPPL

Re: usb/131521: Registering Belkin UPS to usb_quirks.c

2010-10-14 Thread Hans Petter Selasky
On Thursday 14 October 2010 18:20:10 John Bayly wrote:
> The following reply was made to PR usb/131521; it has been noted by GNATS.
> 
> From: John Bayly 
> To: bug-follo...@freebsd.org, n...@smartfruit.com
> Cc:
> Subject: Re: usb/131521: Registering Belkin UPS to usb_quirks.c
> Date: Thu, 14 Oct 2010 17:12:20 +0100
> 
>  This is a multi-part message in MIME format.
>  --040308070403080503030505
>  Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>  Content-Transfer-Encoding: 7bit
> 
>Rather embarrassing: I was composing the previous mail while the
>  kernel was compiling to make sure everything was ok, and managed to hit
>  send. Typically there's a mistake in the patches. Please ignore the
>  preceding two. The attached patches compile properly, and on boot my
>  Belkin F6C120UNV is detected as /dev/ugen0 instead of /dev/uhid0
> 
>  John

Is this also a problem on FreeBSD 8+ ?

--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/131521: Registering Belkin UPS to usb_quirks.c

2010-10-14 Thread John Bayly
The following reply was made to PR usb/131521; it has been noted by GNATS.

From: John Bayly 
To: bug-follo...@freebsd.org, n...@smartfruit.com
Cc:  
Subject: Re: usb/131521: Registering Belkin UPS to usb_quirks.c
Date: Thu, 14 Oct 2010 17:12:20 +0100

 This is a multi-part message in MIME format.
 --040308070403080503030505
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
   Rather embarrassing: I was composing the previous mail while the 
 kernel was compiling to make sure everything was ok, and managed to hit 
 send. Typically there's a mistake in the patches. Please ignore the 
 preceding two. The attached patches compile properly, and on boot my 
 Belkin F6C120UNV is detected as /dev/ugen0 instead of /dev/uhid0
 
 John
 
 
 --040308070403080503030505
 Content-Type: text/plain;
  name="usb_quirks.c.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="usb_quirks.c.diff"
 
 --- /usr/src/sys/dev/usb/usb_quirks.c.orig 2010-10-14 13:28:23.0 
+
 +++ /usr/src/sys/dev/usb/usb_quirks.c  2010-10-14 15:02:13.0 +
 @@ -96,18 +96,78 @@
   /* Devices which should be ignored by uhid */
   { USB_VENDOR_APC, USB_PRODUCT_APC_UPS,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6H375USB,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C550AVR,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C1250TWRK,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C1500TWRK,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C900UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C100UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C120UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C800UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C1100UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_CYBERPOWER, USB_PRODUCT_CYBERPOWER_BC900D,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_CYBERPOWER, USB_PRODUCT_CYBERPOWER_1500CAVRLCD,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_CYBERPOWER, USB_PRODUCT_CYBERPOWER_OR2200LCDRM2U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_DELL2, USB_PRODUCT_DELL2_VARIOUS_UPS,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_DELORME, USB_PRODUCT_DELORME_EARTHMATE,
ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_ITUNERNET, USB_PRODUCT_ITUNERNET_USBLCD2X20,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_LIEBERT2, USB_PRODUCT_LIEBERT2_POWERSURE_PSA,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_LIEBERT, USB_PRODUCT_LIEBERT_VARIOUS_UPS,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS1,
ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_IMPERIAL_SERIES,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_SMART_KING_PRO,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_WOW,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_VANGUARD,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_BLACK_KNIGHT_PRO,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_AVR550U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_AVR750U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_ECO550UPS,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_T750_INTL,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_RT_2200_INTL,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_OMNI1000LCD,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_OMNI900LCD,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_SMART_2200RMXL2U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_UPS_3014,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_SU1500RTXL2UA,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_SU6000RT4U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_SU1500RTXL2ua,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE,
ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_3G,
 
 
 
 --040308070403080503030505
 Content-Type: text/plain;
  name="usbdevs.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="usbdevs.diff"
 
 --- /usr/src/sys/dev/us

Re: usb/131521: Registering Belkin UPS to usb_quirks.c

2010-10-14 Thread John Bayly
The following reply was made to PR usb/131521; it has been noted by GNATS.

From: John Bayly 
To: bug-follo...@freebsd.org, n...@smartfruit.com
Cc:  
Subject: Re: usb/131521: Registering Belkin UPS to usb_quirks.c
Date: Thu, 14 Oct 2010 16:06:59 +0100

 This is a multi-part message in MIME format.
 --040606030209020306060007
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
   I had added an exception for Belkin F6C120UNV and was compiling the 
 kernel when I came across this PR. Because I'm nice I've attached the 
 two patches to support all the USB devices declared in *_hid.c from nut 
 as of v.2.4.3
 I've excluded the HP T500, HP T750 & Tripp-Lite OmniVS1000 as they 
 appear to use their own driver rather than the usbhid driver.
 
 It'd be really nice to see these included at some stage, meanwhile I'll 
 keep patching my kernel source when needed.
 
 John
 
 --040606030209020306060007
 Content-Type: text/plain;
  name="usb_quirks.c.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="usb_quirks.c.diff"
 
 --- /usr/src/sys/dev/usb/usb_quirks.c.orig 2010-10-14 13:28:23.0 
+
 +++ /usr/src/sys/dev/usb/usb_quirks.c  2010-10-14 15:02:13.0 +
 @@ -96,18 +96,78 @@
   /* Devices which should be ignored by uhid */
   { USB_VENDOR_APC, USB_PRODUCT_APC_UPS,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6H375USB,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C550AVR,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C1250TWRK,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C1500TWRK,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C900UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C100UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C120UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C800UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C1100UNV,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_CYBERPOWER, USB_PRODUCT_CYBERPOWER_BC900D,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_CYBERPOWER, USB_PRODUCT_CYBERPOWER_1500CAVRLCD,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_CYBERPOWER, USB_PRODUCT_CYBERPOWER_OR2200LCDRM2U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_DELL2, USB_PRODUCT_DELL2_VARIOUS_UPS,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_DELORME, USB_PRODUCT_DELORME_EARTHMATE,
ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_ITUNERNET, USB_PRODUCT_ITUNERNET_USBLCD2X20,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_LIEBERT2, USB_PRODUCT_LIEBERT2_POWERSURE_PSA,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_LIEBERT, USB_PRODUCT_LIEBERT_VARIOUS_UPS,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS1,
ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2,
ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_IMPERIAL_SERIES,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_SMART_KING_PRO,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_WOW,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_VANGUARD,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_POWERCOM, USB_PRODUCT_POWERCOM_BLACK_KNIGHT_PRO,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_AVR550U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_AVR750U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_ECO550UPS,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_T750_INTL,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_RT_2200_INTL,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_OMNI1000LCD,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_OMNI900LCD,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_SMART_2200RMXL2U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_UPS_3014,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_SU1500RTXL2UA,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_SU6000RT4U,
 +  ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_TRIPPLITE2, USB_PRODUCT_TRIPPLITE2_SU1500RTXL2ua,
 +  ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE,
ANY, { UQ_HID_IGNORE }},
   { USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_3G,
 
 --040606030209020306060007
 Content-Type: text/plain;
  nam