mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
ata: dwc_ahsata: create boot device
For each block device we must create a sibling boot device. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
a41c1aeefb
commit
a7026b0003
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue