Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 May 2005 09:12:55 -0400
From:      "Adam Kropelin" <akropel1@rochester.rr.com>
To:        "Thierry Thomas" <thierry@freebsd.org>, "Lonnie Mendez" <lmendez19@austin.rr.com>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usbdevices (blacklist)
Message-ID:  <006601c54e4f$7d2a3c30$03c8a8c0@kroptech.com>
References:  <20050427055531.07B7D60FB@gnome.dnsalias.net> <20050430160650.GC95709@graf.pompo.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Thierry Thomas wrote:
>> Le Mer 27 avr 05 à  7:55:31 +0200, Lonnie Mendez
>> <lmendez19@austin.rr.com> écrivait :
>>>
>>>> Number:         80383
>>>> Category:       kern
>>>> Synopsis:       [PATCH] Add quirk for uhid to ignore certain usb
>>>> devices (blacklist)
>>
>>>> Description:
>>>
>>> This patch allows uhid to leave alone devices that identify
>>> themselves as hid based, but are indeed
>>> used via another interface.  This is very simliar in concept to the
>>> hid blacklist table found in hid-core.c in the linux kernel.
>>
>> Fine! I also need this to use the new MGE UPS devices (with nut,
>> libusb and the newhidups driver). I have applied the submitted patch
>> on a
>> 5.4-STABLE, and it's OK.
>>
>> To add the MGE UPS devices, I need the attached patches.

Here are additional patches to add APC UPSes to the quirk table.

I've changed the APC UPSPRO500 usbdevs entry to a more generic name and 
description since APC actually uses that product id for all of its UPS 
models. There aren't any existing in-tree users, but I'm not sure what 
affect that change might have on userspace. It can be undone if its likely 
to create compatibility issues.

--Adam

[-- Attachment #2 --]
--- usbdevs	Sun May  1 09:11:47 2005
+++ usbdevs.new	Sun May  1 09:10:36 2005
@@ -471,7 +471,7 @@
 product ALTEC ASC495		0xff05	ASC495 Speakers
 
 /* American Power Conversion products */
-product APC UPSPRO500		0x0002  Back-UPS Pro 500
+product APC UPS			0x0002	Uninterruptible Power Supply
 
 /* Anchor products */
 product ANCHOR EZUSB		0x2131	EZUSB
--- usb_quirks.c	Sun May  1 09:13:12 2005
+++ usb_quirks.c.new	Sun May  1 09:13:03 2005
@@ -108,6 +108,8 @@
 	ANY, { UQ_HID_IGNORE }},
  { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2,
 	ANY, { UQ_HID_IGNORE }},
+ { USB_VENDOR_APC, USB_PRODUCT_APC_UPS,
+	ANY, { UQ_HID_IGNORE }},
  { 0, 0, 0, { 0 } }
 };
 
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006601c54e4f$7d2a3c30$03c8a8c0>