From patchwork Wed Oct 29 15:56:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Kiryanov X-Patchwork-Id: 404683 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 39D95140081 for ; Thu, 30 Oct 2014 02:56:45 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 15B944B959; Wed, 29 Oct 2014 16:56:43 +0100 (CET) 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 kJYfyBZHCPvk; Wed, 29 Oct 2014 16:56:42 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 793CF4B952; Wed, 29 Oct 2014 16:56:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 60E9C4B956 for ; Wed, 29 Oct 2014 16:56:37 +0100 (CET) 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 tu9POobB9NM9 for ; Wed, 29 Oct 2014 16:56:37 +0100 (CET) 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 compulab.co.il (softlayer.compulab.co.il [50.23.254.55]) by theia.denx.de (Postfix) with ESMTPS id 08D974B951 for ; Wed, 29 Oct 2014 16:56:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=compulab.co.il; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=YqELX8XB1lA0bdcpmGUamI+jddMY7gkKlhB5kljiwKc=; b=ZdsH9cvYeKAo6djH/JoXFt81P/tn1L/FYGNjYGzGvOOPYcX/lxEO7lQi2CW9wNNaE7E3p2+5ATJQjLEXt+tBv21qemOY3k3BmkhnZRcGNVxlLBsd/+eyBrg7ekpySp7JAXTccBstpM2ypOapz/NHDTkLQ595k+Cm+9O4ZLYR64g=; Received: from [62.90.235.247] (port=56181 helo=zimbra-mta.compulab.co.il) by softlayer.compulab.co.il with esmtp (Exim 4.82) (envelope-from ) id 1XjVbs-0003W0-SO; Wed, 29 Oct 2014 17:56:33 +0200 Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id E9D4C486CD4; Wed, 29 Oct 2014 17:56:31 +0200 (IST) Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id OABnbT9Fo8ih; Wed, 29 Oct 2014 17:56:27 +0200 (IST) Received: from localhost (localhost [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 040D2486CD2; Wed, 29 Oct 2014 17:56:27 +0200 (IST) X-Virus-Scanned: amavisd-new at zimbra-mta.compulab.co.il Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id J64l6_mpEBme; Wed, 29 Oct 2014 17:56:26 +0200 (IST) Received: from skynet.compulab.local (nikita-pc.compulab.local [192.168.11.211]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id C74D8486CC3; Wed, 29 Oct 2014 17:56:26 +0200 (IST) From: Nikita Kiryanov To: u-boot@lists.denx.de Date: Wed, 29 Oct 2014 17:56:24 +0200 Message-Id: <1414598184-1963-5-git-send-email-nikita@compulab.co.il> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1414598184-1963-1-git-send-email-nikita@compulab.co.il> References: <1414598184-1963-1-git-send-email-nikita@compulab.co.il> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - softlayer.compulab.co.il X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - compulab.co.il X-Get-Message-Sender-Via: softlayer.compulab.co.il: acl_c_relayhosts_text_entry: nikita@compulab.co.il|compulab.co.il Cc: Jeroen Hofstee , Otavio Salvador Subject: [U-Boot] [PATCH V2 4/4] arm: mx6: cm_fx6: power down sata on OS boot X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de If sata is used by U-Boot, the Linux kernel fails to detect the ssd correctly afterwards. Power off sata on OS boot so that Linux will have a clean state to work with. Signed-off-by: Nikita Kiryanov Cc: Igor Grinberg Cc: Stefano Babic Cc: Jeroen Hofstee Cc: Otavio Salvador Acked-by: Otavio Salvador Acked-by: Igor Grinberg --- Changes in V2: - New patch split off the previous patch. board/compulab/cm_fx6/cm_fx6.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c index 0206ae8..676de40 100644 --- a/board/compulab/cm_fx6/cm_fx6.c +++ b/board/compulab/cm_fx6/cm_fx6.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -125,6 +126,11 @@ int sata_initialize(void) return err; } + +void board_preboot_os(void) +{ + cm_fx6_sata_power(0); +} #else static int cm_fx6_setup_issd(void) { return 0; } #endif