kern/80383: [PATCH] Add quirk for uhid to ignore certain usbdevices (blacklist)

Adam Kropelin akropel1 at
Sun May 1 06:20:05 PDT 2005

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

From: "Adam Kropelin" <akropel1 at>
To: "Thierry Thomas" <thierry at>,
	"Lonnie Mendez" <lmendez19 at>
Cc: <FreeBSD-gnats-submit at>, <freebsd-usb at>
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.
 Content-Type: text/plain;
 Content-Transfer-Encoding: 8bit
 Thierry Thomas wrote:
 >> Le Mer 27 avr 05 à  7:55:31 +0200, Lonnie Mendez
 >> <lmendez19 at> é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.
 Content-Type: application/octet-stream;
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 --- usbdevs	Sun May  1 09:11:47 2005=0A=
 +++	Sun May  1 09:10:36 2005=0A=
 @@ -471,7 +471,7 @@=0A=
  product ALTEC ASC495		0xff05	ASC495 Speakers=0A=
  /* American Power Conversion products */=0A=
 -product APC UPSPRO500		0x0002  Back-UPS Pro 500=0A=
 +product APC UPS			0x0002	Uninterruptible Power Supply=0A=
  /* Anchor products */=0A=
  product ANCHOR EZUSB		0x2131	EZUSB=0A=
 --- usb_quirks.c	Sun May  1 09:13:12 2005=0A=
 +++	Sun May  1 09:13:03 2005=0A=
 @@ -108,6 +108,8 @@=0A=
  	ANY, { UQ_HID_IGNORE }},=0A=
  	ANY, { UQ_HID_IGNORE }},=0A=
 +	ANY, { UQ_HID_IGNORE }},=0A=
   { 0, 0, 0, { 0 } }=0A=

More information about the freebsd-bugs mailing list