]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: mvebu/bubt: a38x: Do not hardcode SATA block size to 512
authorPali Rohár <pali@kernel.org>
Tue, 11 Apr 2023 18:35:51 +0000 (20:35 +0200)
committerStefan Roese <sr@denx.de>
Thu, 13 Apr 2023 09:34:47 +0000 (11:34 +0200)
commit9cac0c68245fd306d54c32e4792742f460db175a
tree10385cb825b47acb35962828247e6f232dd266fe
parent2092428a1782274b32d630d0341b1e8d214e5f3c
cmd: mvebu/bubt: a38x: Do not hardcode SATA block size to 512

Find SATA block device by blk_get_devnum_by_uclass_id() function and read
from it the real block size of the SATA disk. In case of error, fallback
back to 512 bytes.

Signed-off-by: Pali Rohár <pali@kernel.org>
cmd/mvebu/bubt.c