]> git.baikalelectronics.ru Git - uboot.git/commit
bootstd: Probe the block device before use
authorSimon Glass <sjg@chromium.org>
Sat, 28 Jan 2023 22:00:19 +0000 (15:00 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 6 Feb 2023 18:04:53 +0000 (13:04 -0500)
commitb51cdf032ab86555713a3727a51bd89340d86057
tree9b68cb04d70222160b14a19b8a2c781a0e19e728
parentf720beb9c48949c10e814dbf8c7ed4d7eccab87e
bootstd: Probe the block device before use

In some cases the block device is obtained but is not probed, since it
is a sibling of the bootdev. Make sure it is probed, so it can be used
without any trouble.

This fixes a bug with virtio, where the device is accessed before it has
been set up by the virtio uclass.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 4d0bd6d0512 ("bootstd: Add the bootdev uclass")
Reported-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
boot/bootdev-uclass.c
boot/bootflow.c