u-boot-brain/drivers
Sascha Silbe ff8fef5666 Fix block device accesses beyond 2TiB
With CONFIG_SYS_64BIT_LBA, lbaint_t gets defined as a 64-bit type,
which is required to represent block numbers for storage devices that
exceed 2TiB (the block size usually is 512B), e.g. recent hard drives.

For some obscure reason, the current U-Boot code uses lbaint_t for the
number of blocks to read (a rather optimistic estimation of how RAM
sizes will evolve), but not for the starting address. Trying to access
blocks beyond the 2TiB boundary will simply wrap around and read a
block within the 0..2TiB range.

We now use lbaint_t for block start addresses, too. This required
changes to all block drivers as the signature of block_read(),
block_write() and block_erase() in block_dev_desc_t changed.

Signed-off-by: Sascha Silbe <t-uboot@infra-silbe.de>
2013-06-26 10:26:06 -04:00
..
bios_emulator biosemu: include <asm/io.h> header 2013-04-02 16:23:35 -04:00
block part/dev_desc: Add log2 of blocksize to block_dev_desc data struct 2013-05-01 16:24:02 -04:00
bootcount Consolidate bootcount code into drivers/bootcount 2012-09-01 14:26:02 +02:00
crypto Exynos: Add hardware accelerated SHA256 and SHA1 2013-03-29 20:10:42 +09:00
dfu dfu: NAND specific routines for DFU operation 2013-04-10 15:22:24 +02:00
dma dma: Add i.MX6 support to drivers/dma/apbh_dma.c 2013-04-22 10:26:13 +02:00
fpga fpga: Check device name against bitstream name 2013-05-06 10:41:25 +02:00
gpio bfin: Move gpio support for bf54x and bf60x into the generic driver folder. 2013-05-13 16:30:27 +08:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c ARM: OMAP: I2C: New read, write and probe functions 2013-06-10 08:43:26 -04:00
input cros: adds cros_ec keyboard driver 2013-06-26 10:13:31 -04:00
misc cros: add LPC support for cros_ec 2013-06-26 10:13:28 -04:00
mmc Fix block device accesses beyond 2TiB 2013-06-26 10:26:06 -04:00
mtd Merge branch 'master' of git://git.denx.de/u-boot-spi 2013-06-24 16:37:01 -04:00
net phylib: add atheros ar803x phy 2013-06-24 19:11:17 -05:00
pci powerpc/boot: Change the macro of Boot from SRIO and PCIE master module 2013-06-20 17:08:48 -05:00
pcmcia PXA: Remove PXA PCMCIA support 2012-03-26 23:09:23 +02:00
power Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' 2013-06-19 12:53:59 +02:00
qe ppc: Move CONFIG_QE to arch_global_data 2013-02-04 09:05:42 -05:00
rtc Consolidate bool type 2013-04-01 16:33:52 -04:00
serial Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' 2013-06-19 12:53:59 +02:00
sound Sound: Support for MAX98095 codec in driver 2013-03-08 22:34:18 +09:00
spi cros: exynos: add SPI support for cros_ec 2013-06-26 10:13:24 -04:00
tpm tpm: Reorganize the I2C TPM driver 2013-06-03 01:31:23 -07:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-06-13 15:16:15 -04:00
video Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-06-22 07:38:12 -04:00
watchdog Merge branch 'u-boot-imx/master' into 'u-boot-arm/master' 2013-06-08 14:35:10 +02:00