bootstd: sata: bootdev scanning for ahci sata with no drive attached
PATCH 1/1 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]/
Signed-off-by Tony Dinh <[email protected]>
---
drivers/ata/sata.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/ata/sata.c +5 -0
@@ -79,6 +79,11 @@ int sata_rescan(bool verbose) ret =uclass_probe_all (UCLASS_AHCI ); +if (verbose && ret == -ENODEV ) { +printf ("No SATA block device found\n" ); +return 0 ; + } +return ret; }
Signature · 1 line
2.39.2
Quoted 30 lines · Tony Dinh
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]/Signed-off-by Tony Dinh <[email protected]>---
drivers/ata/sata.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/ata/sata.c +5
-1@@ -79,6 +79,11 @@ int sata_rescan(bool verbose) ret =uclass_probe_all (UCLASS_AHCI ); +if (verbose && ret == -ENODEV ) { +printf ("No SATA block device found\n" ); +return 0 ; + } +return ret; } --
Quoted 2 lines
2.39.2
Sorry, I need to resend this patch (fat finger).
All the best,
Tony