rockchip: spl-boot-order: Defer probe of boot device
authorJonas Karlman <jonas@kwiboo.se>
Sat, 12 Jul 2025 21:12:29 +0000 (21:12 +0000)
committerTom Rini <trini@konsulko.com>
Sun, 2 Nov 2025 18:15:23 +0000 (12:15 -0600)
commitc6bba31dbdd450081503dc0e20fcfb4328b347e4
tree6d71481b00e1bae710fa21fb8f1dbf978b51b724
parenta1ab4578b279558b9462df7724c130b3cb40f30e
rockchip: spl-boot-order: Defer probe of boot device

Boot devices are being probed when SPL boot order is determined. This
may delay boot slightly and can prevent booting from SPI Flash on boards
that use same pins for SPI Flash and eMMC due to pinctrl being applied
prior to booting.

Instead defer probe of the boot device until SPL try to load image from
the boot device by using uclass_find_device_by_of_offset() instead of
the get variant.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
arch/arm/mach-rockchip/spl-boot-order.c