From owner-cvs-all Thu Jan 6 12:19:28 2000 Delivered-To: cvs-all@freebsd.org Received: from webweaving.org (dialfwn11.fwn.rug.nl [129.125.32.161]) by hub.freebsd.org (Postfix) with ESMTP id 19655155D7; Thu, 6 Jan 2000 12:19:15 -0800 (PST) (envelope-from n_hibma@webweaving.org) Received: from localhost (localhost [127.0.0.1]) by webweaving.org (8.9.3/8.9.3) with ESMTP id VAA00705; Thu, 6 Jan 2000 21:17:32 +0100 (CET) (envelope-from n_hibma@webweaving.org) Date: Thu, 6 Jan 2000 21:17:31 +0100 (CET) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: Bill Paul Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/dev/usb if_kue.c In-Reply-To: <20000106154245.E45A7155C6@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > No: the device only seems to attach once. The info KLSI sent me mentions > the following: > > // Our code will have the USB pullup line drop, wait far a bit, > // execute the downloaded code at interrupt 100 (0x64). > // > // (4) The LAST MODULE downloaded will have to turn on the USB pullup line > // so the host machine can now see the "new" device. > > I'm not sure what this means, but once the firmware is loaded and running, > the device continues working without the hub driver or usbd reacting in > any special way. Shoot, that is wrong. It should reset the device. the USB stack does not reread the descriptors and gets things all wrong. If for example the firmware adds a new pipe to the device, it won't be available until the device is reset. The reason why I am asking is that AnchorChips has a chip that resets only the USB stack half after the firmware has been uploaded. Serial port devices work that way. On the USB stack side you see a reconnect happening that detaches the device the firmware was uploaded to and shows up with a new device with a new VID, PID or RID, indicating that the configuration of the device has changed. Cheers, Nick -- n_hibma@webweaving.org n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message