From: Johan Hovold Date: Fri, 25 Apr 2014 13:23:03 +0000 (+0200) Subject: USB: io_ti: fix firmware download on big-endian machines X-Git-Tag: omap-for-v3.16/soc-signed~13^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5509076d1b4485ce9fb07705fcbcd2695907ab5b;p=pandora-kernel.git 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 Tested-by: Ludovic Drolez Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed