From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30885 invoked by alias); 18 Sep 2007 09:23:40 -0000 Received: (qmail 30876 invoked by uid 22791); 18 Sep 2007 09:23:39 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 18 Sep 2007 09:23:32 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IXZIl-0003xJ-00; Tue, 18 Sep 2007 11:23:27 +0200 Date: Tue, 18 Sep 2007 09:23:00 -0000 From: Andrew Lunn To: Imran Khan Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070918092327.GH2082@lunn.ch> Mail-Followup-To: Imran Khan , ecos-discuss@ecos.sourceware.org References: <1190093267.2792.10.camel@imran.alumnus.co.in> <20070918073959.GG2082@lunn.ch> <1190105875.2792.25.camel@imran.alumnus.co.in> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1190105875.2792.25.camel@imran.alumnus.co.in> User-Agent: Mutt/1.5.16 (2007-06-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] How to enable RNDIS and CDC for USB X-SW-Source: 2007-09/txt/msg00107.txt.bz2 On Tue, Sep 18, 2007 at 02:27:55PM +0530, Imran Khan wrote: > Hi Andrew, > Thank you for your reply. > You are correct that host is getting wrong descriptors but such is the > design of linux code. > > Here the compilation is done on the basis of some configuration flags > specific to CDC or RNDIS so you can use your image with either CDC or > RNDIS ,but in our code instead of having compile time flags we are > setting some flags at run time and monitoring the enumeration > process ,if enumeration is not complete within a specific time our > device assumes that host is not right, then we set flags for > other host and reinitialize the USB part.Our default flag setting is for > RNDIS. > Our problem is that once the host gets wrong descriptor it stops > communication with the device so the new configuration is never used. > Could you please tell me is there any other way of doing this ? So where really is the problem? Wrong descriptors? Broken Linux host implementation? If the descriptors are broken, fix them. If the Linux host is broken, fix it. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss