From owner-cvs-src@FreeBSD.ORG Mon Aug 18 16:48:56 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 116351065759; Mon, 18 Aug 2008 16:48:56 +0000 (UTC) (envelope-from kaiw@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AE7B88FC15; Mon, 18 Aug 2008 16:48:55 +0000 (UTC) (envelope-from kaiw@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7IGmtnl081812; Mon, 18 Aug 2008 16:48:55 GMT (envelope-from kaiw@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7IGmtjM081811; Mon, 18 Aug 2008 16:48:55 GMT (envelope-from kaiw@repoman.freebsd.org) Message-Id: <200808181648.m7IGmtjM081811@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kaiw@repoman.freebsd.org using -f From: Kai Wang Date: Mon, 18 Aug 2008 16:48:53 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/usb hid.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2008 16:48:56 -0000 kaiw 2008-08-18 16:48:53 UTC FreeBSD src repository Modified files: sys/dev/usb hid.c Log: SVN rev 181841 on 2008-08-18 16:48:53Z by kaiw In the hid parser, if a INPUT/OUTPUT/FEATURE item is skipped, its corresponding USAGE should be skipped as well. For example, below is a report desc fragment of some mouse: COLLECTION ... USAGE TWHEEL FEATURE ... ... USAGE WHEEL INPUT ... ... END COLLECTION "USAGE TWHEEL" should be consumed after the FEATURE item is skipped, otherwise, the INPUT item will be assigned to "USAGE TWHEEL" later, other than "USAGE WHEEL". Tested by: Grzegorz Blach PR: usb/125941 Revision Changes Path 1.30 +12 -3 src/sys/dev/usb/hid.c