From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14730 invoked by alias); 18 Oct 2010 12:54:39 -0000 Received: (qmail 14721 invoked by uid 22791); 18 Oct 2010 12:54:39 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mtain04-winn.ispmail.ntl.com (HELO mtain04-winn.ispmail.ntl.com) (81.103.221.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Oct 2010 12:54:31 +0000 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtain04-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20101018125427.ZWEW3020.mtain04-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com>; Mon, 18 Oct 2010 13:54:27 +0100 Received: from cog.dallaway.org.uk ([213.106.80.48]) by aamtaout02-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20101018125427.YPRK4332.aamtaout02-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Mon, 18 Oct 2010 13:54:27 +0100 Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id o9ICsNRf007190; Mon, 18 Oct 2010 13:54:24 +0100 Message-ID: <4CBC437F.8080708@dallaway.org.uk> Date: Mon, 18 Oct 2010 12:54:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.24 (X11/20100912) MIME-Version: 1.0 To: Christophe Coutand CC: ecos-patches@ecos.sourceware.org, Chris Holgate , Ilija Stanislevik Subject: Re: USB mass storage package (slave side). References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2010-10/txt/msg00021.txt.bz2 Hi Christophe Christophe Coutand wrote: > There has been some request for a USB mass storage package (slave side). > This was tested on AT91 architecture with the AT91 eCos USB device > driver. Some patches are required to the AT91 USB device driver for this > package to work properly. If anyone has the possibility to test it with > other architecture it would be most welcome. I've been working with Chris Holgate (and Ilija Stanislevik) to get his STM32 USB slave device driver ready for check-in: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001024 Once this is checked-in, I plan to look at your MSD function driver. One immediate issue is that the STM32 USB slave device driver uses dynamic I/O endpoint configuration and does not provide the endpoint devtab entries which are required by your driver. Looking at your code, it seems that the endpoint devtab entries are only used to look up the endpoint structures within usbs_msd_init(): tab = usbs_msd_lookup( tx_ep_dev_name ); msd->tx_ep = (usbs_tx_endpoint *) tab->priv; tab = usbs_msd_lookup( rx_ep_dev_name ); msd->rx_ep = (usbs_rx_endpoint *) tab->priv; So it seems it should be easy to eliminate the requirement for these devtab entries. Have I understood correctly? John Dallaway eCos maintainer