Date: Sun, 1 May 2005 13:20:05 GMT From: "Adam Kropelin" <akropel1@rochester.rr.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usbdevices (blacklist) Message-ID: <200505011320.j41DK5hc022052@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/80383; it has been noted by GNATS. From: "Adam Kropelin" <akropel1@rochester.rr.com> To: "Thierry Thomas" <thierry@freebsd.org>, "Lonnie Mendez" <lmendez19@austin.rr.com> Cc: <FreeBSD-gnats-submit@freebsd.org>, <freebsd-usb@freebsd.org> Subject: Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usbdevices (blacklist) Date: Sun, 1 May 2005 09:12:55 -0400 This is a multi-part message in MIME format. ------=_NextPart_000_0063_01C54E2D.F60F2650 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit 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 ------=_NextPart_000_0063_01C54E2D.F60F2650 Content-Type: application/octet-stream; name="usb-hid-quirk.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="usb-hid-quirk.patch" --- usbdevs Sun May 1 09:11:47 2005=0A= +++ usbdevs.new Sun May 1 09:10:36 2005=0A= @@ -471,7 +471,7 @@=0A= product ALTEC ASC495 0xff05 ASC495 Speakers=0A= =0A= /* American Power Conversion products */=0A= -product APC UPSPRO500 0x0002 Back-UPS Pro 500=0A= +product APC UPS 0x0002 Uninterruptible Power Supply=0A= =0A= /* Anchor products */=0A= product ANCHOR EZUSB 0x2131 EZUSB=0A= --- usb_quirks.c Sun May 1 09:13:12 2005=0A= +++ usb_quirks.c.new Sun May 1 09:13:03 2005=0A= @@ -108,6 +108,8 @@=0A= ANY, { UQ_HID_IGNORE }},=0A= { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2,=0A= ANY, { UQ_HID_IGNORE }},=0A= + { USB_VENDOR_APC, USB_PRODUCT_APC_UPS,=0A= + ANY, { UQ_HID_IGNORE }},=0A= { 0, 0, 0, { 0 } }=0A= };=0A= =0A= ------=_NextPart_000_0063_01C54E2D.F60F2650--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505011320.j41DK5hc022052>