Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2013 22:34:21 GMT
From:      Juan J Lopez <jlopez@evsis.com.ar>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   usb/175599: [usbdevs][patch]Liebert UPS PSI1000 being assigned uhid and not ugen
Message-ID:  <201301252234.r0PMYLth076372@red.freebsd.org>
Resent-Message-ID: <201301252240.r0PMe0Gr094350@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175599
>Category:       usb
>Synopsis:       [usbdevs][patch]Liebert UPS PSI1000 being assigned uhid and not ugen
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 25 22:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Juan J Lopez
>Release:        9.1-RELEASE amd64
>Organization:
EVSIS
>Environment:
FreeBSD bckp-3.in.evsis.com.ar 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Fri Jan 25 15:07:41 UTC 2013     root@bckp-3.in.evsis.com.ar:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Similar to detailed in usb/129251: Liebert PSI1000 UPSes are assigned a uhidN device node when connected via USB. Due to the way that nut/libusb work, they are expecting a ugenN device node to work with.
>How-To-Repeat:
Plug in Liebert PSI1000 UPS into usb port.
>Fix:
Add Liebert PSI1000 UPSes to /sys/dev/usb/usbdevs and
/sys/dev/usb/quirk/usb_quirk.c (patch file attached)

Patch attached with submission follows:

diff -Naur usb.orig/quirk/usb_quirk.c usb/quirk/usb_quirk.c
--- usb.orig/quirk/usb_quirk.c	2012-12-03 23:04:54.000000000 +0000
+++ usb/quirk/usb_quirk.c	2013-01-25 17:19:06.337846247 +0000
@@ -111,6 +111,7 @@
 	USB_QUIRK(ITUNERNET, USBLCD2X20, 0x0000, 0xffff, UQ_HID_IGNORE),
 	USB_QUIRK(ITUNERNET, USBLCD4X20, 0x0000, 0xffff, UQ_HID_IGNORE),
 	USB_QUIRK(LIEBERT, POWERSURE_PXT, 0x0000, 0xffff, UQ_HID_IGNORE),
+	USB_QUIRK(LIEBERT2, PSI1000, 0x0000, 0xffff, UQ_HID_IGNORE),
 	USB_QUIRK(MGE, UPS1, 0x0000, 0xffff, UQ_HID_IGNORE),
 	USB_QUIRK(MGE, UPS2, 0x0000, 0xffff, UQ_HID_IGNORE),
 	USB_QUIRK(APPLE, IPHONE, 0x0000, 0xffff, UQ_HID_IGNORE),
diff -Naur usb.orig/usbdevs usb/usbdevs
--- usb.orig/usbdevs	2012-12-03 23:04:53.000000000 +0000
+++ usb/usbdevs	2013-01-25 17:18:45.774851088 +0000
@@ -567,6 +567,7 @@
 vendor CURITEL		0x106c	Curitel Communications Inc
 vendor SILABS2		0x10a6	SILABS2
 vendor USI		0x10ab	USI
+vendor LIEBERT2	0x10af	Liebert
 vendor PLX		0x10b5	PLX
 vendor ASANTE		0x10bd	Asante
 vendor SILABS		0x10c4	Silicon Labs
@@ -2072,6 +2073,7 @@
 
 /* Liebert products */
 product LIEBERT POWERSURE_PXT	0xffff	PowerSure Personal XT
+product LIEBERT2 PSI1000	0x0004 	UPS PSI 1000 FW:08 
 
 /* Linksys products */
 product LINKSYS MAUSB2		0x0105	Camedia MAUSB-2


>Release-Note:
>Audit-Trail:
>Unformatted:



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