usb: xhci: tegra: Firmware header is little endian
Greg Kroah-Hartman
maintainerPATCH 1/3 usb: xhci: tegra: Firmware header is little endian
Quoted 12 lines · Thierry Reding
Quoted 11 lines · Greg KH
Quoted 6 lines · Mathias Nyman
From: Thierry Reding <[email protected]>
The XUSB firmware header is in little endian byte order, so make the fields
__le32and__le16instead of u32 and u16 to avoid warnings from sparse when the fields are used with the endian-aware__le32_to_cpu()and__le16_to_cpu()accessors, respectively.This isn't a "bug" in that no code is changed, so why is it needed for 4.19-final?
Quoted 6 lines
Quoted 1 line
Shouldn't this be fine to merge in 4.20-rc1?
Yeah, I don't think there's a need to rush this. It's only to fix a warning from sparse, but it shouldn't impact any code since the code itself already properly parses the firmware in little endian byte order.
Thanks for confirming. Mathias, I'll wait for you to resend this as part of a 4.20-rc1 submission.
thanks,
greg k-h