From owner-freebsd-usb@FreeBSD.ORG Sun Jul 26 16:10:39 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EC501065672 for ; Sun, 26 Jul 2009 16:10:39 +0000 (UTC) (envelope-from agh@coolrhaug.com) Received: from mail5.qnetau.com (mail5.qnetau.com [202.146.209.190]) by mx1.freebsd.org (Postfix) with ESMTP id 910FC8FC16 for ; Sun, 26 Jul 2009 16:10:38 +0000 (UTC) (envelope-from agh@coolrhaug.com) Received: (qmail 39549 invoked by uid 399); 26 Jul 2009 16:10:37 -0000 Received: from unknown (HELO madcat.localnet) (agh@coolrhaug.com@203.59.9.21) by mail5.qnetau.com with ESMTPAM; 26 Jul 2009 16:10:37 -0000 X-Originating-IP: 203.59.9.21 X-Sender: agh@coolrhaug.com From: Alastair Hogge To: Hans Petter Selasky Date: Mon, 27 Jul 2009 00:11:04 +0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <200907261646.17843.hselasky@c2i.net> In-Reply-To: <200907261646.17843.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907270011.04356.agh@coolrhaug.com> Cc: freebsd-usb@freebsd.org Subject: Re: usb/137129: SteelSeries Ikari USB laser mouse not attaching X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2009 16:10:39 -0000 On Sun July 26 2009 22:46:16 Hans Petter Selasky wrote: > Hi, again. Hey, > I think I have found a more general solution. Can you remove the quirk and > try the following patch instead to ukbd_probe(): Yep. > ==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#22 - > src/sys/dev/usb/input/ukbd.c ==== > @@ -711,7 +711,15 @@ > if (error) > return (ENXIO); > > + /* > + * NOTE: we currently don't support USB mouse and USB keyboard > + * on the same USB endpoint. > + */ > if (hid_is_collection(d_ptr, d_len, > + HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE))) { > + /* most likely a mouse */ > + error = ENXIO; > + } else if (hid_is_collection(d_ptr, d_len, > HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_KEYBOARD))) { > if (usb_test_quirk(uaa, UQ_KBD_IGNORE)) > error = ENXIO; OK, that works. > --HPS