From owner-freebsd-bugs@FreeBSD.ORG Sun May 1 13:20:05 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAD8016A4CE for ; Sun, 1 May 2005 13:20:05 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 655F743D2D for ; Sun, 1 May 2005 13:20:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j41DK5RZ022053 for ; Sun, 1 May 2005 13:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j41DK5hc022052; Sun, 1 May 2005 13:20:05 GMT (envelope-from gnats) Date: Sun, 1 May 2005 13:20:05 GMT Message-Id: <200505011320.j41DK5hc022052@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Adam Kropelin" Subject: Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usbdevices (blacklist) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Adam Kropelin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2005 13:20:05 -0000 The following reply was made to PR kern/80383; it has been noted by GNATS. From: "Adam Kropelin" To: "Thierry Thomas" , "Lonnie Mendez" Cc: , 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 >> é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--