From patchwork Tue Sep 23 15:07:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 37738 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E3BFA20970 for ; Tue, 23 Sep 2014 15:08:28 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gi9sf4472981lab.11 for ; Tue, 23 Sep 2014 08:08:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=McR0+Q0YzEeFuzKWreCnD/QkTfH+Mk5STDmHrl64/Ds=; b=cWzhyME3R5yr32eUT7KuOn75aS1CWQNgEkMbhXPJMOWOv+pqcCgz6a+E1tf2f9xn/z rfAiDVDHYPN/Z160PRp5lJiZRTeZ1i/yUryEWNnTpvXbmmmQu3lv0Ke/BQyQZnbHtA9G G7LWc2EPrLWZrNc11n0F+gGUvDaqSNNdGZONngUpfH3kjPldfYuHxOWwxAOJ9ZA/+eTZ pWvod1Hue3YlTqePz9lgoRGNWw5BFwmVClPrCqNHU5vV1Bc7fYiGV6q9cx1e09V/Dm9L 5qCMi1QnhYfBUZsA6zjRIjbt0SD/XZHJZOtmdIE/8j4URC3PHj+eaqoLg+vO8oiHn8b9 Fbdg== X-Gm-Message-State: ALoCoQntFrm1GqfdZ795TPHM8CXzoDzemEjvlF77iK6E6BWb0kDYSyVBdaTyb9DOtQb1d82Puv8X X-Received: by 10.152.42.229 with SMTP id r5mr64669lal.8.1411484907698; Tue, 23 Sep 2014 08:08:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.42 with SMTP id b10ls55028lae.28.gmail; Tue, 23 Sep 2014 08:08:27 -0700 (PDT) X-Received: by 10.152.3.130 with SMTP id c2mr238992lac.72.1411484907569; Tue, 23 Sep 2014 08:08:27 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id ld9si19015518lac.106.2014.09.23.08.08.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 08:08:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id gi9so8739588lab.38 for ; Tue, 23 Sep 2014 08:08:27 -0700 (PDT) X-Received: by 10.152.22.137 with SMTP id d9mr133600laf.29.1411484907324; Tue, 23 Sep 2014 08:08:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp429013lbb; Tue, 23 Sep 2014 08:08:26 -0700 (PDT) X-Received: by 10.180.36.244 with SMTP id t20mr24037540wij.73.1411484906771; Tue, 23 Sep 2014 08:08:26 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id wu2si15454194wjc.27.2014.09.23.08.08.25 for ; Tue, 23 Sep 2014 08:08:26 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 19458A7454; Tue, 23 Sep 2014 17:08:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nyb-5slQQKQO; Tue, 23 Sep 2014 17:08:06 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D859BA7456; Tue, 23 Sep 2014 17:07:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 63F4BA73EB for ; Tue, 23 Sep 2014 17:07:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TzohAgyfU1t2 for ; Tue, 23 Sep 2014 17:07:29 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by theia.denx.de (Postfix) with ESMTPS id 48AD6A73EF for ; Tue, 23 Sep 2014 17:07:27 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s8NF7LiR031552; Tue, 23 Sep 2014 10:07:21 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8NF7KN5015492; Tue, 23 Sep 2014 10:07:20 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Tue, 23 Sep 2014 10:07:20 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8NF76Te017458; Tue, 23 Sep 2014 10:07:18 -0500 From: Roger Quadros To: Date: Tue, 23 Sep 2014 18:07:04 +0300 Message-ID: <1411484824-27265-5-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1411484824-27265-1-git-send-email-rogerq@ti.com> References: <1411484824-27265-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, ijc@hellion.org.uk, Roger Quadros Subject: [U-Boot] [PATCH 4/4] common: spl_sata: perform SCSI scan before getting device X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 At least on OMAP, init_sata() no longer performs scsi_scan() so we must do it explicitly here. Cc: Dan Murphy Signed-off-by: Roger Quadros --- 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); }