diff options
author | Harald Welte <laforge@gnumonks.org> | 2008-07-07 00:58:05 +0800 |
---|---|---|
committer | John Rigby <jrigby@freescale.com> | 2008-07-10 10:53:04 -0600 |
commit | cc83b27217f7380041fea386ddb6d6d9b261617d (patch) | |
tree | 65f62ae3860b2d2b449447a5c22e2e6ad9872fcf /nand_spl | |
parent | 06c53beae1a726e707971c555613f09b270a2461 (diff) | |
download | u-boot-imx-cc83b27217f7380041fea386ddb6d6d9b261617d.zip u-boot-imx-cc83b27217f7380041fea386ddb6d6d9b261617d.tar.gz u-boot-imx-cc83b27217f7380041fea386ddb6d6d9b261617d.tar.bz2 |
fix USB devices with multiple configurations
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 <laforge@openmoko.org>
Acked-by: Markus Klotzbuecher <mk@denx.de>
Diffstat (limited to 'nand_spl')
0 files changed, 0 insertions, 0 deletions