From owner-freebsd-usb@FreeBSD.ORG Sun May 1 13:13:00 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4BF116A4CE; Sun, 1 May 2005 13:13:00 +0000 (GMT) Received: from ms-smtp-01.nyroc.rr.com (ms-smtp-01.nyroc.rr.com [24.24.2.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A65C43D2D; Sun, 1 May 2005 13:13:00 +0000 (GMT) (envelope-from akropel1@rochester.rr.com) Received: from mail.kroptech.com (cpe-24-93-20-125.rochester.res.rr.com [24.93.20.125])j41DCuXs017910; Sun, 1 May 2005 09:12:56 -0400 (EDT) Received: from pia (pia.kroptech.com [192.168.200.3]) by mail.kroptech.com (Postfix) with SMTP id BAEE811376E; Sun, 1 May 2005 09:23:43 -0400 (EDT) Message-ID: <006601c54e4f$7d2a3c30$03c8a8c0@kroptech.com> From: "Adam Kropelin" To: "Thierry Thomas" , "Lonnie Mendez" References: <20050427055531.07B7D60FB@gnome.dnsalias.net> <20050430160650.GC95709@graf.pompo.net> Date: Sun, 1 May 2005 09:12:55 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0063_01C54E2D.F60F2650" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: FreeBSD-gnats-submit@freebsd.org cc: freebsd-usb@freebsd.org Subject: Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usbdevices (blacklist) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2005 13:13:00 -0000 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--