summaryrefslogtreecommitdiff
path: root/common/usb.c
diff options
context:
space:
mode:
authorSergey Temerkhanov <s.temerkhanov@gmail.com>2015-04-01 17:18:46 +0300
committerMarek Vasut <marex@denx.de>2015-04-14 05:47:48 +0200
commitf6570871346aa3e83ba263bbed79a43875437112 (patch)
tree5509ea19654fa6bdf8c3cc11e5d7a954a5b22d09 /common/usb.c
parent421a5a0c980e8abc620880b8d00cfba1bd349e3c (diff)
downloadu-boot-imx-f6570871346aa3e83ba263bbed79a43875437112.zip
u-boot-imx-f6570871346aa3e83ba263bbed79a43875437112.tar.gz
u-boot-imx-f6570871346aa3e83ba263bbed79a43875437112.tar.bz2
usb_storage:Fix USB storage capacity detection on 64 bit architectures
This patch fixes USB storage capacity detection breakage on 64-bit systems which arises due to 'unsigned long' length difference. Old code assumes that to be 32 bit and breaks because of inappropriate response buffer layout. Also this fixes a number of build warnings and changes big-endian values treatment style to be architecture-independent Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com> Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
Diffstat (limited to 'common/usb.c')
0 files changed, 0 insertions, 0 deletions