summaryrefslogtreecommitdiff
path: root/firmware/usbstack/drivers/device/usb_serial.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2007-08-29 10:14:47 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2007-08-29 10:14:47 +0000
commit17f2dd5c13cda7447da74227099b852ee55e1dd6 (patch)
tree89b8f659df56ef92adf1859f95e108e802b19852 /firmware/usbstack/drivers/device/usb_serial.c
parent4ecd9716bd47961ca7377de690eaeb740ef7f947 (diff)
endpoint address was only set in fs descriptor, but we need it in hs too. Update storage device descriptor dynamic based on dcd
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14507 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/drivers/device/usb_serial.c')
-rw-r--r--firmware/usbstack/drivers/device/usb_serial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/usbstack/drivers/device/usb_serial.c b/firmware/usbstack/drivers/device/usb_serial.c
index 9f1778a3f2..578e9a1e2d 100644
--- a/firmware/usbstack/drivers/device/usb_serial.c
+++ b/firmware/usbstack/drivers/device/usb_serial.c
@@ -201,6 +201,10 @@ int usb_serial_driver_bind(void* controler_ops)
serial_debug_desc.bDebugInEndpoint = dev.in->ep_num;
serial_debug_desc.bDebugOutEndpoint = dev.out->ep_num;
+ /* update hs descriptors as we asume that endpoints are the same for fs and hs */
+ serial_hs_in_desc.bEndpointAddress = serial_fs_in_desc.bEndpointAddress;
+ serial_hs_out_desc.bEndpointAddress = serial_fs_out_desc.bEndpointAddress;
+
return 0;
autoconf_fail: