From patchwork Tue Sep 23 15:07:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 37736 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A95120970 for ; Tue, 23 Sep 2014 15:08:03 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id ho1sf2647784wib.0 for ; Tue, 23 Sep 2014 08:08:03 -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=W4E/kIvEVemmhikrUMzHqgw/rxZJFhyA/6Af+CKbpw0=; b=bk1fTlnu0sVtG7d3RM0a7d8dOqElkbclj8YJEUp8d4YavmaS8J5U1xm/jX0V4L1/yE 1hvOrGVrGoWAqn9MY/vEF9afXopO+Ne0Now8sO5dMEJTbd/h2xowDltWshOjPxWIPWII +IbPdFhKd8K47W9c+vKYs2QOYYxD5COQ+OOMsEvdVTXpA/TWCuDLtJdt5BBVGOxMDl1W lQ1IWpzYBOS77p//VL+tG+BcMfX36OqiqN5uCxrCdcI/jwCgtbM7wkC+rHKLNp4gli9c 6z0t7jm3mc9ma+MkUGzTnx9bzi0tHgX3y4YjID37G9hvwIpQxuQPQud9OFbGVJWsu0fY tfgw== X-Gm-Message-State: ALoCoQlH/QImxwvmiwIxF8SaIEgu77+BcYjJJEKgllCr1lAZrQe7mf+MMnyjepjJJwdNp8/DP+/C X-Received: by 10.180.24.225 with SMTP id x1mr552810wif.2.1411484883252; Tue, 23 Sep 2014 08:08:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.70 with SMTP id q6ls59424lah.62.gmail; Tue, 23 Sep 2014 08:08:03 -0700 (PDT) X-Received: by 10.152.246.6 with SMTP id xs6mr265060lac.56.1411484883073; Tue, 23 Sep 2014 08:08:03 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx.google.com with ESMTPS id zl2si19103657lbb.25.2014.09.23.08.08.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 08:08:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id w7so3190274lbi.6 for ; Tue, 23 Sep 2014 08:08:01 -0700 (PDT) X-Received: by 10.112.53.230 with SMTP id e6mr183370lbp.100.1411484881863; Tue, 23 Sep 2014 08:08:01 -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 of9csp428912lbb; Tue, 23 Sep 2014 08:08:01 -0700 (PDT) X-Received: by 10.194.142.166 with SMTP id rx6mr392230wjb.38.1411484881330; Tue, 23 Sep 2014 08:08:01 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id s2si15427852wjz.48.2014.09.23.08.08.00 for ; Tue, 23 Sep 2014 08:08:01 -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 28978A7426; Tue, 23 Sep 2014 17:07:52 +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 nfa6nIBBWcU6; Tue, 23 Sep 2014 17:07:51 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BD8E7A7432; Tue, 23 Sep 2014 17:07:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E2C06A73EA for ; Tue, 23 Sep 2014 17:07:29 +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 e1sLqNhNa428 for ; Tue, 23 Sep 2014 17:07:27 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 4DC43A73E2 for ; Tue, 23 Sep 2014 17:07:25 +0200 (CEST) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s8NF7Iv4012343; Tue, 23 Sep 2014 10:07:18 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s8NF7Htj026694; Tue, 23 Sep 2014 10:07:18 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Tue, 23 Sep 2014 10:07:17 -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 s8NF76Td017458; Tue, 23 Sep 2014 10:07:15 -0500 From: Roger Quadros To: Date: Tue, 23 Sep 2014 18:07:03 +0300 Message-ID: <1411484824-27265-4-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 3/4] ARM: OMAP5+: sata: Move scsi_scan() to the right place 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.217.175 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 scsi_scan() must be called as part of scsi_init() and not as part of sata_init(). Signed-off-by: Roger Quadros --- arch/arm/cpu/armv7/omap-common/sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/omap-common/sata.c b/arch/arm/cpu/armv7/omap-common/sata.c index 131d082..3b4dd3f 100644 --- a/arch/arm/cpu/armv7/omap-common/sata.c +++ b/arch/arm/cpu/armv7/omap-common/sata.c @@ -70,7 +70,6 @@ int init_sata(int dev) writel(val, TI_SATA_WRAPPER_BASE + TI_SATA_SYSCONFIG); ret = ahci_init(DWC_AHSATA_BASE); - scsi_scan(1); return ret; } @@ -79,4 +78,5 @@ int init_sata(int dev) void scsi_init(void) { init_sata(0); + scsi_scan(1); }