diff mbox

[4/4] common: spl_sata: perform SCSI scan before getting device

Message ID 1411484824-27265-5-git-send-email-rogerq@ti.com
State Accepted
Commit 76300c0d2d63bb7cb02679bf749f30ae4a1ca969
Headers show

Commit Message

Roger Quadros Sept. 23, 2014, 3:07 p.m. UTC
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 | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini Oct. 10, 2014, 2:40 p.m. UTC | #1
On Tue, Sep 23, 2014 at 06:07:04PM +0300, Roger Quadros wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

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);
 	}