u-boot/drivers/mmc
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
..
arm_pl180_mmci.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
arm_pl180_mmci.h u8500: Separating mmc config parameters from driver 2012-09-01 14:58:20 +02:00
bcm2835_sdhci.c ARM: bcm2835: fix get_timer() to return ms 2013-04-04 08:14:54 +02:00
bfin_sdh.c Merge u-boot/master into u-boot-ti/master 2013-03-11 12:16:13 -04:00
davinci_mmc.c davinci, mmc: Added a delay reading ext CSD register 2013-05-06 16:26:24 -05:00
dw_mmc.c MMC: DWMMC: Fix FIFO_DEPTH calculation 2013-06-17 11:03:42 +09:00
exynos_dw_mmc.c EXYNOS5: DWMMC: Added FDT support for DWMMC 2013-06-13 17:35:14 +09:00
fsl_esdhc.c fsl_esdhc: Do not clear interrupt status bits until data processed 2013-06-13 16:52:19 -05:00
ftsdc010_mci.c mmc: update Faraday FTSDC010 for rw performance 2013-05-15 18:18:15 -05:00
gen_atmel_mci.c mmc: atmel_mci: add mmc card support 2013-05-12 16:48:11 +02:00
Makefile Merge branch 'u-boot/master' into 'u-boot-arm/master' 2013-05-30 14:45:06 +02:00
mmc.c Fix block device accesses beyond 2TiB 2013-06-26 10:26:06 -04:00
mmc_spi.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
mv_sdhci.c mmc: sdhci: return error when failed add_sdhci(). 2013-05-06 16:26:24 -05:00
mxcmmc.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
mxsmmc.c imx: Move some header files from arch-mxs to imx-common 2013-04-22 10:22:22 +02:00
omap_hsmmc.c mmc: omap_hsmmc: Update pbias programming 2013-06-10 08:43:10 -04:00
pxa_mmc.h pxa: move mmc drivers to drivers/mmc 2009-02-20 03:47:50 +01:00
pxa_mmc_gen.c mmc: Remove incorrect cmd->flags usage 2012-09-06 15:23:13 -05:00
s5p_sdhci.c mmc: sdhci: return error when failed add_sdhci(). 2013-05-06 16:26:24 -05:00
sdhci.c mmc: sdhci: Enable 8-bit bus width only for 3.0 spec onwards 2013-06-13 16:44:49 -05:00
sh_mmcif.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
sh_mmcif.h mmc: sh_mmcif: add support for Renesas MMCIF 2011-07-15 20:29:21 -05:00
spear_sdhci.c sdhci: Add sdhci support for spear devices 2013-05-06 16:26:24 -05:00
tegra_mmc.c mmc: Tegra: Add SD bus power/voltage function and MMC pad init call. 2013-03-14 11:06:44 -07:00
zynq_sdhci.c mmc: Add support for Xilinx Zynq sdhci controller 2013-04-30 11:39:27 +02:00