From owner-freebsd-current@FreeBSD.ORG Tue Feb 17 19:48:44 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0F2F106564A; Tue, 17 Feb 2009 19:48:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 49CE58FC1B; Tue, 17 Feb 2009 19:48:43 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=v1l4sCoM7rMA:10 a=-QvcQp4i0RcA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=6I5d2MoRAAAA:8 a=EHBwwFOhjfWp-xShJlAA:9 a=ILQEA7Zb3BuWGUTgViUA:7 a=YlKnIW4Cj1R7o28Bbi-yqSmv-osA:4 a=LY0hPdMaydYA:10 a=SV7veod9ZcQA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1200782402; Tue, 17 Feb 2009 20:48:42 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Tue, 17 Feb 2009 20:51:10 +0100 User-Agent: KMail/1.9.7 References: <87mycme9wc.fsf@kobe.laptop> <87tz6sj2aw.fsf@kobe.laptop> <200902172040.06348.hselasky@freebsd.org> In-Reply-To: <200902172040.06348.hselasky@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902172051.11077.hselasky@c2i.net> Cc: Giorgos Keramidas , Andrew Thompson Subject: Re: usb2 moused issue (Microsoft Wireless Optical) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2009 19:48:46 -0000 On Tuesday 17 February 2009, Hans Petter Selasky wrote: > On Tuesday 17 February 2009, Giorgos Keramidas wrote: > > On Tue, 17 Feb 2009 20:55:30 +0200, Giorgos Keramidas > > > > wrote: > > > The code of hid_report_size() is similar in old usb and the new usb > > > stack, but I am not sure about all the differences I see. The > > > calculation of `size' is done correctly with old usb code, so I am > > > testing the patch attached below now. It essentially pulls in the > > > hid_report_size() from the old usb code, with the if (h.kind == k) > > > check reversed to remove one spurious indentation level: > > > > No luck with the old usb code for hid_report_size() either. We may be > > looking at the wrong place. I'll build a kernel with a pre-usb2 stack > > and see what ums debugging shows for this mouse. If it used to work > > with size=2 then we might have to look elsewhere for the bug. > > I don't think that will help. Can you try the following. > > XYZ information includes: (64+8-40)/8 = 4 bytes > > Then you need add one PD byte, so size should be 5 bytes. Maybe this will help: kldload usb2_quirk And re-plug mouse? Because it looks like your mouse is already listed there. BTW: I want to find a permanent solution for those quirks. So stand by for another patch. --HPS