]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: blk_common: Stop using hard-coded block size for Sandbox operations
authorBin Meng <bmeng@tinylab.org>
Tue, 26 Sep 2023 08:43:42 +0000 (16:43 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 10 Oct 2023 20:25:48 +0000 (16:25 -0400)
commit4e345656e7253d655aa8f697350091f3c82c4f0f
tree12bf4f2024cef959ff1b0c01e6ce1e82719e0dcd
parenta9bf25cb93b96502da814f22cd2fbb284272a800
cmd: blk_common: Stop using hard-coded block size for Sandbox operations

commit 3d2fc7971454 ("cmd: blk: Allow generic read/write operations to work in sandbox")
used the hard-coded block size (512) for accessing the sandbox host
device. Now that we have added support for non-512 block size for both
Sandbox host device and blkmap driver, let's stop using the hard-coded
block size.

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