From owner-freebsd-usb@FreeBSD.ORG Fri Jan 25 22:40:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2C162642 for ; Fri, 25 Jan 2013 22:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 12A35EC0 for ; Fri, 25 Jan 2013 22:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0PMe0O0094355 for ; Fri, 25 Jan 2013 22:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0PMe0Gr094350; Fri, 25 Jan 2013 22:40:00 GMT (envelope-from gnats) Resent-Date: Fri, 25 Jan 2013 22:40:00 GMT Resent-Message-Id: <201301252240.r0PMe0Gr094350@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Juan J Lopez Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0147D5E3 for ; Fri, 25 Jan 2013 22:34:23 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E7155E9D for ; Fri, 25 Jan 2013 22:34:22 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0PMYLcd076373 for ; Fri, 25 Jan 2013 22:34:21 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0PMYLth076372; Fri, 25 Jan 2013 22:34:21 GMT (envelope-from nobody) Message-Id: <201301252234.r0PMYLth076372@red.freebsd.org> Date: Fri, 25 Jan 2013 22:34:21 GMT From: Juan J Lopez To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/175599: [usbdevs][patch]Liebert UPS PSI1000 being assigned uhid and not ugen X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2013 22:40:01 -0000 >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: