From owner-freebsd-usb@FreeBSD.ORG Tue Aug 25 12:15:23 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 BD7EA106564A; Tue, 25 Aug 2009 12:15:23 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85]) by mx1.freebsd.org (Postfix) with ESMTP id 2C5508FC14; Tue, 25 Aug 2009 12:15:23 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1Mfuvs-0008GT-9u; Tue, 25 Aug 2009 16:15:24 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id C51F8B864; Tue, 25 Aug 2009 16:15:20 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 8CCD1108842; Tue, 25 Aug 2009 16:15:06 +0400 (MSD) Date: Tue, 25 Aug 2009 16:15:06 +0400 From: Dmitry Marakasov To: Hans Petter Selasky Message-ID: <20090825121506.GD26981@hades.panopticon> References: <200908241557.n7OFvuT1052755@freefall.freebsd.org> <20090825011025.GA26981@hades.panopticon> <200908250927.39427.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <200908250927.39427.hselasky@c2i.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: gavin@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/101761: [usb67] [patch] [request] usb.h: increase maximal size of report descriptor 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: Tue, 25 Aug 2009 12:15:23 -0000 * Hans Petter Selasky (hselasky@c2i.net) wrote: > How to dump HID descriptor: >=20 > Interface 0 of ugen7.5: >=20 > usbconfig -u 7 -a 5 do_request 0x81 0x06 0x2200 0 0x1000 >=20 > Interface 1 of ugen7.5: >=20 > usbconfig -u 7 -a 5 do_request 0x81 0x06 0x2200 1 0x1000 Yes, it dumps more than 1024 bytes, so the problem described in the PR is fixed. But see my other comment regarding usbhidctl. --- REQUEST =3D <0x05 0x01 0x09 0x04 0xa1 0x01 0x85 0x01 0x09 0x01 0xa1 0x00 0x= 66 0x00 0x00 0x55 0x00 0x16 0x00 0xfe 0x26 0xff 0x01 0x35 0x00 0x46 0xff 0x= 03 0x95 0x01 0x75 0x0a 0x09 0x30 0x81 0x02 0x75 0x06 0x81 0x01 0x09 0x31 0x= 75 0x0a 0x81 0x02 0x75 0x06 0x95 0x01 0x81 0x01 0x15 0xe0 0x25 0x1f 0x35 0x= 00 0x45 0x3f 0x66 0x14 0x00 0x09 0x35 0x81 0x02 0x75 0x02 0x81 0x01 0x66 0x= 00 0x00 0xc0 0x75 0x07 0x95 0x01 0x15 0x00 0x25 0x7f 0x35 0x00 0x45 0x7f 0x= 09 0x36 0x81 0x02 0x75 0x01 0x81 0x01 0x09 0x39 0x15 0x00 0x25 0x07 0x35 0x= 00 0x46 0x3b 0x01 0x66 0x14 0x00 0x75 0x04 0x95 0x01 0x81 0x42 0x95 0x01 0x= 81 0x01 0x66 0x00 0x00 0x05 0x09 0x19 0x01 0x29 0x08 0x15 0x00 0x25 0x01 0x= 35 0x00 0x45 0x01 0x95 0x08 0x75 0x01 0x81 0x02 0x95 0x04 0x75 0x08 0x81 0x= 01 0x05 0x0f 0x09 0x92 0xa1 0x02 0x85 0x02 0x09 0x9f 0x09 0xa0 0x09 0xa4 0x= 09 0xa5 0x09 0xa6 0x15 0x00 0x25 0x01 0x35 0x00 0x45 0x01 0x75 0x01 0x95 0x= 05 0x81 0x02 0x95 0x03 0x81 0x03 0x09 0x94 0x15 0x00 0x25 0x01 0x35 0x00 0x= 45 0x01 0x75 0x01 0x95 0x01 0x81 0x02 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x= 01 0x45 0x28 0x75 0x07 0x95 0x01 0x81 0x02 0xc0 0x09 0x21 0xa1 0x02 0x85 0x= 01 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0x= 91 0x02 0x09 0x25 0xa1 0x02 0x09 0x26 0x09 0x27 0x09 0x30 0x09 0x31 0x09 0x= 32 0x09 0x33 0x09 0x34 0x09 0x40 0x09 0x41 0x09 0x42 0x09 0x43 0x09 0x28 0x= 25 0x0c 0x15 0x01 0x35 0x01 0x45 0x0c 0x75 0x08 0x95 0x01 0x91 0x00 0xc0 0x= 09 0x50 0x09 0x54 0x09 0x51 0x15 0x00 0x26 0xff 0x7f 0x35 0x00 0x46 0xff 0x= 7f 0x66 0x03 0x10 0x55 0xfd 0x75 0x10 0x95 0x03 0x91 0x02 0x55 0x00 0x66 0x= 00 0x00 0x09 0x52 0x15 0x00 0x26 0xff 0x00 0x35 0x00 0x46 0x10 0x27 0x75 0x= 08 0x95 0x01 0x91 0x02 0x09 0x53 0x15 0x01 0x25 0x08 0x35 0x01 0x45 0x08 0x= 75 0x08 0x95 0x01 0x91 0x02 0x09 0x55 0xa1 0x02 0x05 0x01 0x09 0x30 0x09 0x= 31 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x02 0x91 0x02 0xc0 0x05 0x0f 0x09 0x= 56 0x95 0x01 0x91 0x02 0x95 0x05 0x91 0x03 0x09 0x57 0xa1 0x02 0x0b 0x01 0x= 00 0x0a 0x00 0x0b 0x02 0x00 0x0a 0x00 0x66 0x14 0x00 0x55 0xfe 0x15 0x00 0x= 26 0xff 0x00 0x35 0x00 0x47 0xa0 0x8c 0x00 0x00 0x66 0x00 0x00 0x75 0x08 0x= 95 0x02 0x91 0x02 0x55 0x00 0x66 0x00 0x00 0xc0 0x05 0x0f 0x09 0xa7 0x66 0x= 03 0x10 0x55 0xfd 0x15 0x00 0x26 0xff 0x7f 0x35 0x00 0x46 0xff 0x7f 0x75 0x= 10 0x95 0x01 0x91 0x02 0x66 0x00 0x00 0x55 0x00 0xc0 0x05 0x0f 0x09 0x5a 0x= a1 0x02 0x85 0x02 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x= 08 0x95 0x01 0x91 0x02 0x09 0x5b 0x09 0x5d 0x15 0x00 0x26 0xff 0x00 0x35 0x= 00 0x46 0x10 0x27 0x95 0x02 0x91 0x02 0x09 0x5c 0x09 0x5e 0x66 0x03 0x10 0x= 55 0xfd 0x26 0xff 0x7f 0x46 0xff 0x7f 0x75 0x10 0x91 0x02 0x45 0x00 0x66 0x= 00 0x00 0x55 0x00 0xc0 0x09 0x5f 0xa1 0x02 0x85 0x03 0x09 0x22 0x15 0x01 0x= 25 0x28 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x23 0x15 0x= 00 0x25 0x01 0x35 0x00 0x45 0x01 0x75 0x04 0x95 0x01 0x91 0x02 0x09 0x58 0x= a1 0x02 0x0b 0x01 0x00 0x0a 0x00 0x0b 0x02 0x00 0x0a 0x00 0x75 0x02 0x95 0x= 02 0x91 0x02 0xc0 0x15 0x80 0x25 0x7f 0x36 0xf0 0xd8 0x46 0x10 0x27 0x09 0x= 60 0x75 0x08 0x95 0x01 0x91 0x02 0x36 0xf0 0xd8 0x46 0x10 0x27 0x09 0x61 0x= 09 0x62 0x95 0x02 0x91 0x02 0x15 0x00 0x26 0xff 0x00 0x35 0x00 0x46 0x10 0x= 27 0x09 0x63 0x09 0x64 0x75 0x08 0x95 0x02 0x91 0x02 0x09 0x65 0x46 0x10 0x= 27 0x95 0x01 0x91 0x02 0xc0 0x09 0x6e 0xa1 0x02 0x85 0x04 0x09 0x22 0x15 0x= 01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x70 0x= 15 0x00 0x26 0xff 0x00 0x35 0x00 0x46 0x10 0x27 0x75 0x08 0x95 0x01 0x91 0x= 02 0x09 0x6f 0x15 0x80 0x25 0x7f 0x36 0xf0 0xd8 0x46 0x10 0x27 0x95 0x01 0x= 91 0x02 0x09 0x71 0x66 0x14 0x00 0x55 0xfe 0x15 0x00 0x26 0xff 0x00 0x35 0x= 00 0x47 0xa0 0x8c 0x00 0x00 0x91 0x02 0x09 0x72 0x26 0xff 0x7f 0x46 0xff 0x= 7f 0x66 0x03 0x10 0x55 0xfd 0x75 0x10 0x95 0x01 0x91 0x02 0x66 0x00 0x00 0x= 55 0x00 0xc0 0x09 0x73 0xa1 0x02 0x85 0x05 0x09 0x22 0x15 0x01 0x25 0x28 0x= 35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x70 0x16 0x01 0xff 0x= 26 0xff 0x00 0x36 0xf0 0xd8 0x46 0x10 0x27 0x75 0x10 0x95 0x01 0x91 0x02 0x= c0 0x09 0x74 0xa1 0x02 0x85 0x06 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x= 45 0x28 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x75 0x09 0x76 0x15 0x80 0x25 0x= 7f 0x36 0xf0 0xd8 0x46 0x10 0x27 0x75 0x08 0x95 0x02 0x91 0x02 0xc0 0x09 0x= 68 0xa1 0x02 0x85 0x07 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x= 75 0x08 0x95 0x01 0x91 0x02 0x09 0x6c 0x15 0x00 0x26 0x10 0x27 0x35 0x00 0x= 46 0x10 0x27 0x75 0x10 0x95 0x01 0x91 0x02 0x09 0x69 0x15 0x81 0x25 0x7f 0x= 35 0x00 0x46 0xff 0x00 0x75 0x08 0x95 0x0c 0x92 0x02 0x01 0xc0 0x09 0x66 0x= a1 0x02 0x85 0x08 0x05 0x01 0x09 0x30 0x09 0x31 0x15 0x81 0x25 0x7f 0x35 0x= 00 0x46 0xff 0x00 0x75 0x08 0x95 0x02 0x91 0x02 0xc0 0x05 0x0f 0x09 0x77 0x= a1 0x02 0x85 0x0a 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x= 08 0x95 0x01 0x91 0x02 0x09 0x78 0xa1 0x02 0x09 0x79 0x09 0x7a 0x09 0x7b 0x= 15 0x01 0x25 0x03 0x75 0x08 0x95 0x01 0x91 0x00 0xc0 0x09 0x7c 0x15 0x00 0x= 26 0xff 0x00 0x35 0x00 0x46 0xff 0x00 0x91 0x02 0xc0 0x09 0x90 0xa1 0x02 0x= 85 0x0b 0x09 0x22 0x25 0x28 0x15 0x01 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x= 01 0x91 0x02 0xc0 0x09 0x96 0xa1 0x02 0x85 0x0c 0x09 0x97 0x09 0x98 0x09 0x= 99 0x09 0x9a 0x09 0x9b 0x09 0x9c 0x15 0x01 0x25 0x06 0x75 0x08 0x95 0x01 0x= 91 0x00 0xc0 0x09 0x7d 0xa1 0x02 0x85 0x0d 0x09 0x7e 0x15 0x00 0x26 0xff 0x= 00 0x35 0x00 0x46 0x10 0x27 0x75 0x08 0x95 0x01 0x91 0x02 0xc0 0x09 0x6b 0x= a1 0x02 0x85 0x0e 0x09 0x22 0x15 0x01 0x25 0x28 0x35 0x01 0x45 0x28 0x75 0x= 08 0x95 0x01 0x91 0x02 0x09 0x6d 0x15 0x00 0x26 0xff 0x00 0x35 0x00 0x46 0x= ff 0x00 0x75 0x08 0x95 0x01 0x91 0x02 0x09 0x51 0x66 0x03 0x10 0x55 0xfd 0x= 15 0x00 0x26 0xff 0x7f 0x35 0x00 0x46 0xff 0x7f 0x75 0x10 0x95 0x01 0x91 0x= 02 0x55 0x00 0x66 0x00 0x00 0xc0 0x09 0xab 0xa1 0x02 0x85 0x01 0x09 0x25 0x= a1 0x02 0x09 0x26 0x09 0x27 0x09 0x30 0x09 0x31 0x09 0x32 0x09 0x33 0x09 0x= 34 0x09 0x40 0x09 0x41 0x09 0x42 0x09 0x43 0x09 0x28 0x25 0x0c 0x15 0x01 0x= 35 0x01 0x45 0x0c 0x75 0x08 0x95 0x01 0xb1 0x00 0xc0 0x05 0x01 0x09 0x3b 0x= 15 0x00 0x26 0xff 0x01 0x35 0x00 0x46 0xff 0x01 0x75 0x0a 0x95 0x01 0xb1 0x= 02 0x75 0x06 0xb1 0x01 0xc0 0x05 0x0f 0x09 0x89 0xa1 0x02 0x85 0x02 0x09 0x= 22 0x25 0x28 0x15 0x01 0x35 0x01 0x45 0x28 0x75 0x08 0x95 0x01 0xb1 0x02 0x= 09 0x8b 0xa1 0x02 0x09 0x8c 0x09 0x8d 0x09 0x8e 0x25 0x03 0x15 0x01 0x35 0x= 01 0x45 0x03 0x75 0x08 0x95 0x01 0xb1 0x00 0xc0 0x09 0xac 0x15 0x00 0x27 0x= ff 0xff 0x00 0x00 0x35 0x00 0x47 0xff 0xff 0x00 0x00 0x75 0x10 0x95 0x01 0x= b1 0x00 0xc0 0x09 0x7f 0xa1 0x02 0x85 0x03 0x09 0x80 0x75 0x10 0x95 0x01 0x= 15 0x00 0x35 0x00 0x27 0xff 0xff 0x00 0x00 0x47 0xff 0xff 0x00 0x00 0xb1 0x= 02 0x09 0x83 0x26 0xff 0x00 0x46 0xff 0x00 0x75 0x08 0x95 0x01 0xb1 0x02 0x= 09 0xa9 0x09 0xaa 0x75 0x01 0x95 0x02 0x15 0x00 0x25 0x01 0x35 0x00 0x45 0x= 01 0xb1 0x02 0x75 0x06 0x95 0x01 0xb1 0x03 0xc0 0xc0> --- Device descriptor, fyi: --- ugen2.2: at usbus2, cfg=3D0 md= =3DHOST spd=3DFULL (12Mbps) pwr=3DON Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0029=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x00a0=20 bMaxPower =3D 0x0032=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0002=20 bInterfaceClass =3D 0x0003=20 bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x0000=20 iInterface =3D 0x0000 Additional Descriptor bLength =3D 0x09 bDescriptorType =3D 0x21 bDescriptorSubType =3D 0x00 RAW dump:=20 0x00 | 0x09, 0x21, 0x00, 0x01, 0x00, 0x01, 0x22, 0x3f,=20 0x08 | 0x05 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081=20 bmAttributes =3D 0x0003=20 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0002=20 bmAttributes =3D 0x0003=20 wMaxPacketSize =3D 0x0010=20 bInterval =3D 0x0004=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 --- --=20 Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://www.amdmi3.ru