From a7026b0003ad610319b05e76ad2838fe5abe72ef Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Thu, 8 Aug 2024 09:08:03 +0200 Subject: [PATCH] ata: dwc_ahsata: create boot device For each block device we must create a sibling boot device. Signed-off-by: Heinrich Schuchardt --- drivers/ata/dwc_ahsata.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index a29d641343..203f98edff 100644 --- a/drivers/ata/dwc_ahsata.c +++ b/drivers/ata/dwc_ahsata.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -897,7 +898,11 @@ int dwc_ahsata_scan(struct udevice *dev) ret = blk_probe_or_unbind(dev); if (ret < 0) /* TODO: undo create */ - return ret; + return log_msg_ret("pro", ret); + + ret = bootdev_setup_for_sibling_blk(blk, "sata_bootdev"); + if (ret) + return log_msg_ret("bd", ret); return 0; } -- 2.39.5