diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-04-25 17:23:03 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-25 20:34:10 +0400 |
commit | 5509076d1b4485ce9fb07705fcbcd2695907ab5b (patch) | |
tree | 8b60716a6f575040d3cc10d97d97fb891a9b9f18 /scripts/conmakehash.c | |
parent | 01bb59ebffdec314da8da66266edf29529372f9b (diff) | |
download | linux-5509076d1b4485ce9fb07705fcbcd2695907ab5b.tar.xz |
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 <ldrolez@debian.org>
Tested-by: Ludovic Drolez <ldrolez@debian.org>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/conmakehash.c')
0 files changed, 0 insertions, 0 deletions