]> git.sur5r.net Git - u-boot/commit
usb_storage:Fix USB storage capacity detection on 64 bit architectures
authorSergey Temerkhanov <s.temerkhanov@gmail.com>
Wed, 1 Apr 2015 14:18:46 +0000 (17:18 +0300)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:47:48 +0000 (05:47 +0200)
commitf6570871346aa3e83ba263bbed79a43875437112
tree5509ea19654fa6bdf8c3cc11e5d7a954a5b22d09
parent421a5a0c980e8abc620880b8d00cfba1bd349e3c
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>
common/usb_storage.c