From: Tony Dinh Date: Wed, 6 Sep 2023 05:22:41 +0000 (-0700) Subject: arm: mvebu: sata_mv: Add bootstd hook to enable sata_bootdev X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=19acf771c69c71f8ce566158bad927115934e33a;p=u-boot.git arm: mvebu: sata_mv: Add bootstd hook to enable sata_bootdev Add hook in sata_mv probe to enable bootstd bootdev. Note: bootdev_setup_for_sibling_blk() invocation is a noop if bootsd is not enabled for ahci sata yet. Signed-off-by: Tony Dinh Reviewed-by: Simon Glass Reviewed-by: Stefan Roese --- diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 1abea0b309..94d7369351 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -1105,6 +1106,12 @@ static int sata_mv_probe(struct udevice *dev) /* TODO: undo create */ continue; + ret = bootdev_setup_for_sibling_blk(blk, "sata_bootdev"); + if (ret) { + printf("%s: Failed to create bootdev\n", __func__); + continue; + } + /* If we got here, the current SATA port was probed * successfully, so set the probe status to successful. */ @@ -1117,7 +1124,6 @@ static int sata_mv_probe(struct udevice *dev) static int sata_mv_scan(struct udevice *dev) { /* Nothing to do here */ - return 0; }