diff options
author | Harald Welte <laforge@gnumonks.org> | 2008-07-07 00:58:05 +0800 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-10 11:51:52 +0200 |
commit | e73b5212e0463a3db0af0a5c95c75bfb762ca973 (patch) | |
tree | 01011b40e467bcc71a1573b556e5b73c187d7aab /lib_i386 | |
parent | c4b81f3238d77a4df343bd70ddfb7ebd29ca1dda (diff) | |
download | u-boot-imx-e73b5212e0463a3db0af0a5c95c75bfb762ca973.zip u-boot-imx-e73b5212e0463a3db0af0a5c95c75bfb762ca973.tar.gz u-boot-imx-e73b5212e0463a3db0af0a5c95c75bfb762ca973.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 'lib_i386')
0 files changed, 0 insertions, 0 deletions