Skip to contentSkip to conversation

usb: musb: gadget: Fix big-endian arch issue

PATCH New Bin Liu 1 participant 1 message Aug 27, 2018 USB

lore
Share & tools
lore

Bin Liu

author
#0 lore raw

PATCH v2 1/1 usb: musb: gadget: Fix big-endian arch issue

Hi,

Quoted 14 lines · Alexey Spirkov

Existing code is not applicable to big-endian machines ctrlrequest fields received in USB endian - i.e. in little-endian and should be converted to cpu endianness before usage.

---
 drivers/usb/musb/musb_gadget_ep0.c | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)
drivers/usb/musb/musb_gadget_ep0.c +0 -0
index 91a5027..90abacb 100644

drivers/usb/musb/musb_gadget_ep0.c static int service_tx_status_request( · line 82

Quoted 1 line
drivers/usb/musb/musb_gadget_ep0.c +0 -0
@@ -82,7 +82,7 @@ static int service_tx_status_request(
                u16             tmp;
		     ^^^^^^^^^^^^^

The patch cannot be applied. All the tabs are converted to whitespaces.

Regards,
-Bin.