From owner-freebsd-usb@FreeBSD.ORG Wed Mar 9 19:30:08 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9EF716A4CE for ; Wed, 9 Mar 2005 19:30:08 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7670A43D60 for ; Wed, 9 Mar 2005 19:30:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j29JU6ho073750 for ; Wed, 9 Mar 2005 19:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j29JU6KB073744; Wed, 9 Mar 2005 19:30:06 GMT (envelope-from gnats) Date: Wed, 9 Mar 2005 19:30:06 GMT Message-Id: <200503091930.j29JU6KB073744@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jonathan Fosburgh Subject: Re: usb/77604: Sluggish Logitch LX700 USB Mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jonathan Fosburgh List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 19:30:08 -0000 The following reply was made to PR usb/77604; it has been noted by GNATS. From: Jonathan Fosburgh To: FreeBSD-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Cc: Subject: Re: usb/77604: Sluggish Logitch LX700 USB Mouse Date: Wed, 9 Mar 2005 13:24:35 -0600 --nextPart1551828.ILC4ddNh2E Content-Type: multipart/mixed; boundary="Boundary-01=_+10LCFumADhsQ4T" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_+10LCFumADhsQ4T Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Attached is a patch to -CURRENT that fixes this problem. It is based on a=20 patch to 5-STABLE sent to me by Morten Johansen. It is adapted from NetBSD'= s=20 version of the hid_report_size() function. I am sending both patches, since= =20 there are slight differences between HEAD and RELENG_5. =2D-=20 Jonathan Fosburgh AIX and Storage Administrator UT MD Anderson Cancer Center Houston, TX --Boundary-01=_+10LCFumADhsQ4T Content-Type: text/x-diff; charset="utf-8"; name="hid.c.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="hid.c.patch" =2D-- hid.c.orig Tue Feb 22 01:27:35 2005 +++ hid.c Tue Feb 22 01:38:44 2005 @@ -371,14 +371,22 @@ hid_report_size(void *buf, int len, enum { struct hid_data *d; struct hid_item h; =2D int size, id; + int hi, lo, size, id; =20 id =3D 0; + hi =3D lo =3D -1; for (d =3D hid_start_parse(buf, len, 1<