aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2014-04-25 15:23:03 +0200
committerGreg Kroah-Hartman <[email protected]>2014-04-25 09:34:10 -0700
commit5509076d1b4485ce9fb07705fcbcd2695907ab5b (patch)
tree8b60716a6f575040d3cc10d97d97fb891a9b9f18 /net/lapb/lapb_out.c
parent01bb59ebffdec314da8da66266edf29529372f9b (diff)
USB: io_ti: fix firmware download on big-endian machines
During firmware download the device expects memory addresses in big-endian byte order. As the wIndex parameter which hold the address is sent in little-endian byte order regardless of host byte order, we need to use swab16 rather than cpu_to_be16. Also make sure to handle the struct ti_i2c_desc size parameter which is returned in little-endian byte order. Reported-by: Ludovic Drolez <[email protected]> Tested-by: Ludovic Drolez <[email protected]> Cc: [email protected] Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions