common: spl_sata: perform SCSI scan before getting device
authorRoger Quadros <rogerq@ti.com>
Tue, 23 Sep 2014 15:07:04 +0000 (18:07 +0300)
committerTom Rini <trini@ti.com>
Fri, 10 Oct 2014 13:44:42 +0000 (09:44 -0400)
At least on OMAP, init_sata() no longer performs scsi_scan()
so we must do it explicitly here.

Cc: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
common/spl/spl_sata.c

index 2e7adca0ca6d903da35f5966b2a0a6afc755954a..12e16d96039d2cb3e9f785e05140fbaac803cfa3 100644 (file)
@@ -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);
        }