From: Michal Nazarewicz Date: Fri, 25 Jun 2010 14:29:26 +0000 (+0200) Subject: USB: gadget: f_mass_storage: fixed fs descriptors not being updated X-Git-Tag: v2.6.35-rc4~18^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5fd39d9b80aaa0b8a16dd570fa55009905d6af4;p=pandora-kernel.git USB: gadget: f_mass_storage: fixed fs descriptors not being updated The full speed descriptors were copied to the usb_function structure in the fsg_bind_config function before call to the usb_ep_autoconfig. The usb_ep_autoconfig was called in fsg_bind using the original descriptors. In effect copied descriptors were not updated. This patch changes the copy full speed descriptors after the call to usb_op_autoconfig is performed. This way, copied full speed descriptors have updated values. Signed-off-by: Michal Nazarewicz Cc: Kyungmin Park Reported-by: Dries Van Puymbroeck Tested-by: Dries Van Puymbroeck Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed