u-boot/drivers/block
Jean-Jacques Hiblot 5fe7702ecc blk: dm: make blk_create_device() take a number of block instead of a size
There is an overflow problem when taking the size instead of the number
of blocks in blk_create_device(). This results in a wrong device size: the
device apparent size is its real size  modulo 4GB.
Using the number of blocks instead of the device size fixes the problem and
is more coherent with the internals of the block layer.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-09-11 21:43:58 -06:00
..
blk-uclass.c blk: dm: make blk_create_device() take a number of block instead of a size 2017-09-11 21:43:58 -06:00
blk_legacy.c dm: blk: Add a function to find an interface-type name 2017-08-17 16:44:16 +09:00
blkcache.c drivers: block: add block device cache 2016-04-01 17:18:27 -04:00
ide.c block: ide: Don't bother to create BLK device if no CDROM inserted 2017-09-10 12:27:40 -04:00
Kconfig dm: mmc: Allow disabling driver model in SPL 2017-08-01 11:58:00 +09:00
Makefile block: Drop the ftide020 driver 2017-09-03 15:30:35 -04:00
sandbox.c blk: dm: make blk_create_device() take a number of block instead of a size 2017-09-11 21:43:58 -06:00
systemace.c dm: systemace: Add driver-mode block-device support 2016-05-17 09:54:43 -06:00