ata: dwc_ahsata: Fix sector reports for large disks
authorSoeren Moch <smoch@web.de>
Fri, 1 Mar 2019 12:10:58 +0000 (13:10 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 13 Apr 2019 18:30:09 +0000 (20:30 +0200)
commitd5326dfa7a757794c5a4865fba6b899e280a022b
tree06e0a50939113077e64688727ac5df88caaabdcc
parentf9b0b8d4ee6d5515305470eeb909506c90b5d331
ata: dwc_ahsata: Fix sector reports for large disks

Do not report negative sector numbers for disks > 1TB, do not limit
sector numbers to 32 bit if CONFIG_SYS_64BIT_LBA is enabled.

Signed-off-by: Soeren Moch <smoch@web.de>
drivers/ata/dwc_ahsata.c