From patchwork Wed Mar 15 18:25:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 739399 X-Patchwork-Delegate: jh80.chung@samsung.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vk0Ql6BFpz9ryr for ; Thu, 16 Mar 2017 05:25:35 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 5AD37C21C5E; Wed, 15 Mar 2017 18:25:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 58DB6C21C27; Wed, 15 Mar 2017 18:25:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C19FBC21C27; Wed, 15 Mar 2017 18:25:27 +0000 (UTC) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lists.denx.de (Postfix) with ESMTPS id DCCDFC21C26 for ; Wed, 15 Mar 2017 18:25:26 +0000 (UTC) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 15 Mar 2017 11:25:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,170,1486454400"; d="scan'208";a="236549035" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 15 Mar 2017 11:25:23 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 3AB42D0; Wed, 15 Mar 2017 20:25:22 +0200 (EET) From: Andy Shevchenko To: Jaehoon Chung , u-boot@lists.denx.de, Stefan Roese , Michal Simek , Simon Glass , Felipe Balbi Date: Wed, 15 Mar 2017 20:25:21 +0200 Message-Id: <20170315182521.4359-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.11.0 Cc: Andy Shevchenko Subject: [U-Boot] [PATCH v1] mmc: sdhci: SDHCI controllers also need power X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" On some systems SDHCI controllers may be powered off and it's required to bring them on before accessing. SDHCI generic driver currently lacks any mean of doing it. Call the same board_power_mmc_init() at sdhci_init() stage. Signed-off-by: Andy Shevchenko --- drivers/mmc/sdhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 93cefd89cd..54a7e379ff 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -469,6 +469,8 @@ static int sdhci_init(struct mmc *mmc) { struct sdhci_host *host = mmc->priv; + board_mmc_power_init(); + sdhci_reset(host, SDHCI_RESET_ALL); if ((host->quirks & SDHCI_QUIRK_32BIT_DMA_ADDR) && !aligned_buffer) {