[U-Boot] [PATCH 4/4] common: spl_sata: perform SCSI scan before getting device

Roger Quadros rogerq at ti.com
Tue Sep 23 17:07:04 CEST 2014


At least on OMAP, init_sata() no longer performs scsi_scan()
so we must do it explicitly here.

Cc: Dan Murphy <dmurphy at ti.com>
Signed-off-by: Roger Quadros <rogerq at ti.com>
---
 common/spl/spl_sata.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c
index 2e7adca..12e16d9 100644
--- a/common/spl/spl_sata.c
+++ b/common/spl/spl_sata.c
@@ -32,6 +32,7 @@ void spl_sata_load_image(void)
 		hang();
 	} else {
 		/* try to recognize storage devices immediately */
+		scsi_scan(0);
 		stor_dev = scsi_get_dev(0);
 	}
 
-- 
1.8.3.2



More information about the U-Boot mailing list