Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Apr 2005 16:10:05 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usb devices (blacklist)
Message-ID:  <200504301610.j3UGA5wO039760@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: Thierry Thomas <thierry@FreeBSD.org>
To: Lonnie Mendez <lmendez19@austin.rr.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org, dignome@gmail.com,
	freebsd-usb@freebsd.org
Subject: Re: kern/80383: [PATCH] Add quirk for uhid to ignore certain usb devices (blacklist)
Date: Sat, 30 Apr 2005 18:06:50 +0200

 --m51xatjYGsM+13rf
 Content-Type: text/plain; charset=iso-8859-1
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit
 
 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.
 -- 
 Th. Thomas.
 
 --m51xatjYGsM+13rf
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="usb_quirks.diff"
 
 --- src/sys/dev/usb/usb_quirks.c.orig	Sat Feb  5 16:05:51 2005
 +++ src/sys/dev/usb/usb_quirks.c	Sat Apr 30 09:27:35 2005
 @@ -101,6 +101,13 @@
  	ANY, { UQ_ASSUME_CM_OVER_DATA }},
   { USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_AS64LX,
  	0x100, { UQ_ASSUME_CM_OVER_DATA }},
 + /* Devices which should be ignored by uhid */
 + { USB_VENDOR_DELORME, USB_PRODUCT_DELORME_EARTHMATE,
 +	ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS1,
 +	ANY, { UQ_HID_IGNORE }},
 + { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2,
 +	ANY, { UQ_HID_IGNORE }},
   { 0, 0, 0, { 0 } }
  };
  
 
 --m51xatjYGsM+13rf
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="usbdevs.diff"
 
 --- src/sys/dev/usb/usbdevs.orig	Sun Apr  3 16:37:47 2005
 +++ src/sys/dev/usb/usbdevs	Sat Apr 30 16:00:53 2005
 @@ -90,6 +90,7 @@
  vendor DIAMOND2		0x045a	Diamond (Supra)
  vendor MICROSOFT	0x045e	Microsoft
  vendor PRIMAX		0x0461	Primax Electronics
 +vendor MGE		0x0463	MGE UPS Systems
  vendor AMP		0x0464	AMP
  vendor CHERRY		0x046a	Cherry Mikroschalter
  vendor MEGATRENDS	0x046b	American Megatrends
 @@ -962,6 +963,10 @@
  
  /* Metricom products */
  product METRICOM RICOCHET_GS	0x0001	Ricochet GS
 +
 +/* MGE UPS Systems */
 +product MGE UPS1		0x0001	MGEUPS newhidups 1
 +product MGE UPS2		0xffff	MGEUPS newhidups 2
  
  /* Microsoft products */
  product MICROSOFT SIDEPREC	0x0008	SideWinder Precision Pro
 
 --m51xatjYGsM+13rf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504301610.j3UGA5wO039760>