summaryrefslogtreecommitdiff
path: root/common/cmd_usb.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2008-07-07 00:58:05 +0800
committerWolfgang Denk <wd@denx.de>2008-07-10 11:51:52 +0200
commite73b5212e0463a3db0af0a5c95c75bfb762ca973 (patch)
tree01011b40e467bcc71a1573b556e5b73c187d7aab /common/cmd_usb.c
parentc4b81f3238d77a4df343bd70ddfb7ebd29ca1dda (diff)
downloadu-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 'common/cmd_usb.c')
0 files changed, 0 insertions, 0 deletions