From owner-freebsd-current@FreeBSD.ORG Tue Feb 17 19:37:40 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 6A7491065692; Tue, 17 Feb 2009 19:37:40 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id C97658FC13; Tue, 17 Feb 2009 19:37:39 +0000 (UTC) (envelope-from hselasky@freebsd.org) 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=j3337_ArTOnjN38r2ZAA:9 a=bfMOuIxchP6vL-kLgSEA:7 a=bbDz0ygQ19usFYDZqbD0KfGsRYoA:4 a=LY0hPdMaydYA:10 a=SV7veod9ZcQA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1197290750; Tue, 17 Feb 2009 20:37:38 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Tue, 17 Feb 2009 20:40:05 +0100 User-Agent: KMail/1.9.7 References: <87mycme9wc.fsf@kobe.laptop> <87tz6sdhb1.fsf@kobe.laptop> <87tz6sj2aw.fsf@kobe.laptop> In-Reply-To: <87tz6sj2aw.fsf@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902172040.06348.hselasky@freebsd.org> 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:37:41 -0000 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. --HPS