]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:06 +0000 (21:47 +0200)
commit3ffc24246dc115991fabb621984af329994f533b
tree86444ccc451164c333808273e4412cd25cf954cd
parent112b220caa9ef2a3e43f6b7f2220338d72e4899d
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