diff options
| author | Tony Dinh <[email protected]> | 2023-10-06 20:34:28 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-10-23 13:07:23 -0400 |
| commit | 1052920aa987061f4d2aaa768dfe0ba15b6f10f7 (patch) | |
| tree | 798e669b565ccf85a7256ca97509f02089ca48b3 | |
| parent | a7527fbbf20619e16f4b3bf13139f6f9a881b964 (diff) | |
bootstd: sata: bootdev scanning for ahci sata with no drive attached
It's normal to have no SATA drive attached to the controller, so return a
successful status when there is no block device found after probing.
Note: this patch depends on the previous patch
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Resend the right patch.
Signed-off-by: Tony Dinh <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
| -rw-r--r-- | drivers/ata/sata.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ata/sata.c b/drivers/ata/sata.c index f126b84e050..dcb5fcf476b 100644 --- a/drivers/ata/sata.c +++ b/drivers/ata/sata.c @@ -79,6 +79,12 @@ int sata_rescan(bool verbose) ret = uclass_probe_all(UCLASS_AHCI); + if (ret == -ENODEV) { + if (verbose) + printf("No SATA block device found\n"); + return 0; + } + return ret; } |
