diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-08-08 09:08:03 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-08-27 11:17:39 -0600 |
| commit | a7026b0003ad610319b05e76ad2838fe5abe72ef (patch) | |
| tree | 37ea25ec2e6581ee1178e58597fae3065407b4f9 | |
| parent | a41c1aeefb990a579663a2c7c192e590ffcf625f (diff) | |
ata: dwc_ahsata: create boot device
For each block device we must create a sibling boot device.
Signed-off-by: Heinrich Schuchardt <[email protected]>
| -rw-r--r-- | drivers/ata/dwc_ahsata.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index a29d641343e..203f98edffc 100644 --- a/drivers/ata/dwc_ahsata.c +++ b/drivers/ata/dwc_ahsata.c @@ -6,6 +6,7 @@ #include <ahci.h> #include <blk.h> +#include <bootdev.h> #include <cpu_func.h> #include <dm.h> #include <dwc_ahsata.h> @@ -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; } |
