Skip to contentSkip to conversation

usb: xhci: tegra: Firmware header is little endian

PATCH New Greg Kroah-Hartman 1 participant 1 message Sep 20, 2018 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 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 __le32 and __le16 instead 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