]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: spl: Do not hardcode SATA block size to 512
authorPali Rohár <pali@kernel.org>
Wed, 29 Mar 2023 19:25:52 +0000 (21:25 +0200)
committerStefan Roese <sr@denx.de>
Thu, 13 Apr 2023 09:34:24 +0000 (11:34 +0200)
commit2092428a1782274b32d630d0341b1e8d214e5f3c
tree6ae5ba8054aa09577e5622deda944d3500a4cc13
parent703e5d7b6e29c97a15e39d5ebb2ed4dc68053444
arm: mvebu: spl: 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.

Signed-off-by: Pali Rohár <pali@kernel.org>
arch/arm/mach-mvebu/spl.c