]> git.dujemihanovic.xyz Git - u-boot.git/commit
blk: blkmap: Support mapping to device of any block size
authorBin Meng <bmeng@tinylab.org>
Tue, 26 Sep 2023 08:43:39 +0000 (16:43 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 10 Oct 2023 20:25:48 +0000 (16:25 -0400)
commitcf83ff3452ac76ebe882136a7722bf73ea737d3d
tree04127225f3a8f3ca442a81af81cb7f581e9c8d99
parent42411e068da2ca16aeb1e80cb89cd5cfde98ada8
blk: blkmap: Support mapping to device of any block size

At present if a device to map has a block size other than 512,
the blkmap map process just fails. There is no reason why we
can't just use the block size of the mapped device.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/block/blkmap.c