usb: musb: gadget: Fix big-endian arch issue
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.
Signed-off-by Alexey Spirkov <[email protected]>--- drivers/usb/musb/musb_gadget_ep0.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-)drivers/usb/musb/musb_gadget_ep0.c +0
-0
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.