From: Wolfgang Denk Date: Thu, 10 Jul 2008 11:59:41 +0200 Subject: [U-Boot-Users] [PATCH] fix USB devices with multiple configurations In-Reply-To: Your message of "Mon, 07 Jul 2008 00:58:05 +0800." <20080706165805.GG20299@prithivi.gnumonks.org> Message-ID: <20080710095941.C5B67242FF@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20080706165805.GG20299@prithivi.gnumonks.org> you wrote: > > This patch fixes bugs in usbdcore*.c related to the use of devices > with multiple configurations. > > The original code made mistakes about the meaning of configuration value and > configuration index, and the resulting off-by-one errors resulted in: > > * SET_CONFIGURATION always selected the first configuration, no matter what > wValue is being passed. > * GET_DESCRIPTOR/CONFIGURATION always returned the descriptor for the first > configuration (index 0). > > Signed-off-by: Harald Welte Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Everyone who comes in here wants three things: 1. They want it quick. 2. They want it good. 3. They want it cheap. I tell 'em to pick two and call me back. - sign on the back wall of a small printing company in Delaware