diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2010-03-29 14:01:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 13:21:36 -0700 |
commit | 0fb2c2a1692b8f77be25d38f8802b0142cb6e6bc (patch) | |
tree | a9fee9add6aef38f6ddc2d70e1c94750366d7864 /include | |
parent | dd0543ecc638947d67bdd3a8a41b95ed3c7b885e (diff) |
USB: gadget: f_mass_storage: per function
Mass Storage Function (MSF) used the same descriptors for each
usb_function instance (meaning usb_function::descriptors of different
functions pointed to the same static area (the same was true for
usb_function::hs_descriptors)).
This would leads to problems if MSF were used in several USB
configurations with different interface and/or endpoint numbers.
Descriptors for all configurations would have interface/endpoint
numbers overwritten by the values valid for the last configuration.
This patch adds code that copies the descriptors each time MSF is
added to USB configuration (that is for each usb_function).
Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions