diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0058-usb-gadget-storage-endian-fix.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0058-usb-gadget-storage-endian-fix.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0058-usb-gadget-storage-endian-fix.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0058-usb-gadget-storage-endian-fix.patch new file mode 100644 index 00000000..d3bda65a --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0058-usb-gadget-storage-endian-fix.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 5e2120eb3e1016b52dbfdaf13b022617ba3252f4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andiry Xu <andiry.xu@amd.com> | ||
3 | Date: Wed, 4 Jan 2012 15:18:27 +0800 | ||
4 | Subject: [PATCH 58/90] usb: gadget: storage: endian fix | ||
5 | |||
6 | commit a85016390135d577c457876d0e905095600751de upstream. | ||
7 | |||
8 | Fix some endian issues for storage gadgets. | ||
9 | |||
10 | Signed-off-by: Andiry Xu <andiry.xu@amd.com> | ||
11 | Signed-off-by: Felipe Balbi <balbi@ti.com> | ||
12 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | ||
13 | --- | ||
14 | drivers/usb/gadget/storage_common.c | 6 +++--- | ||
15 | 1 files changed, 3 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/drivers/usb/gadget/storage_common.c b/drivers/usb/gadget/storage_common.c | ||
18 | index c7f291a..85ea14e 100644 | ||
19 | --- a/drivers/usb/gadget/storage_common.c | ||
20 | +++ b/drivers/usb/gadget/storage_common.c | ||
21 | @@ -598,16 +598,16 @@ static __maybe_unused struct usb_ss_cap_descriptor fsg_ss_cap_desc = { | ||
22 | | USB_5GBPS_OPERATION), | ||
23 | .bFunctionalitySupport = USB_LOW_SPEED_OPERATION, | ||
24 | .bU1devExitLat = USB_DEFAULT_U1_DEV_EXIT_LAT, | ||
25 | - .bU2DevExitLat = USB_DEFAULT_U2_DEV_EXIT_LAT, | ||
26 | + .bU2DevExitLat = cpu_to_le16(USB_DEFAULT_U2_DEV_EXIT_LAT), | ||
27 | }; | ||
28 | |||
29 | static __maybe_unused struct usb_bos_descriptor fsg_bos_desc = { | ||
30 | .bLength = USB_DT_BOS_SIZE, | ||
31 | .bDescriptorType = USB_DT_BOS, | ||
32 | |||
33 | - .wTotalLength = USB_DT_BOS_SIZE | ||
34 | + .wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE | ||
35 | + USB_DT_USB_EXT_CAP_SIZE | ||
36 | - + USB_DT_USB_SS_CAP_SIZE, | ||
37 | + + USB_DT_USB_SS_CAP_SIZE), | ||
38 | |||
39 | .bNumDeviceCaps = 2, | ||
40 | }; | ||
41 | -- | ||
42 | 1.7.7.4 | ||
43 | |||