From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <6e0e380ce6e806aba2352efd107d264a@brasstown.quanstro.net> <10023947-0D3C-4AFB-A112-AD3470D03832@gmail.com> <4966b6590436322b2ca11f5162a547e6@coraid.com> Date: Fri, 7 Jan 2011 18:21:48 +0100 Message-ID: From: Gorka Guardiola To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] usb vid/did Topicbox-Message-UUID: 91fa77b8-ead6-11e9-9d60-3106f5b1d025 On Fri, Jan 7, 2011 at 5:52 PM, erik quanstrom w= rote: > okay, so there's some sort of bug. =A0what kind of output > would you like. =A0this is for the kw ehci. > Hmm, if it is a bug it is on purpose I think. You are right it could probably change to show vid/did. All is started by startdev in /sys/src/cmd/usb/usbd/usbd.c:224 Devices have their info written by writeinfo() /sys/src/cmd/usb/usbd/dev.c:217 Hubs (root or not) have their info written by usbd in newhub() /sys/src/cmd/usb/usbd/usbd.c:177 Hubs all have the same format. As root hubs are invented, they don't have vid/did, so plain hubs don't either to have the same format= . The vid/did can be added and to make the string similar maybe the vid/did for roohubs can be set to 0xffff/0xffff or someth= ing. You only have to change the info strings of newhub to be more like the ones in writeinfo and see if anything breaks (I don't think it should but...). HTH G.