Re: [PATCH 5/5] usb: dwc3: Endianness issue on dwc3_log_ctrl

2016-05-24 Thread Felipe Balbi
John Youn writes: > Sparse complains even though it looks ok. Probably it cannot detect that > the wValue, wIndex, and wLength are declared __le16 due to the macro > magic. should we fix sparse, instead? Oh well, doesn't hurt applying. > > Redeclare them as CPU endianness

[PATCH 5/5] usb: dwc3: Endianness issue on dwc3_log_ctrl

2016-05-23 Thread John Youn
Sparse complains even though it looks ok. Probably it cannot detect that the wValue, wIndex, and wLength are declared __le16 due to the macro magic. Redeclare them as CPU endianness and make the conversion on assignment. Signed-off-by: John Youn ---