From patchwork Fri May 12 18:16:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 761793 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 3wPdcJ2qrhz9rxw for ; Sat, 13 May 2017 04:22:24 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="GTZK0hPe"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id C51B3C21F13; Fri, 12 May 2017 18:20:46 +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_NONE, T_DKIM_INVALID 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 CC164C22059; Fri, 12 May 2017 18:18:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 84DD5C21FF9; Fri, 12 May 2017 18:17:10 +0000 (UTC) Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by lists.denx.de (Postfix) with ESMTPS id 74311C2202E for ; Fri, 12 May 2017 18:17:05 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v4CIH37s002515; Fri, 12 May 2017 13:17:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1494613023; bh=ttvalU2B77CMXjP3ecaxnhvRVU05iJ0Q+7pHaYM4hxE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GTZK0hPeh+qNvoUH4/sDCK7oykv3tBLC7Kmu6vv/J2F/ZvGMxM+5FL9+FEGUPU/19 aAX0Zt9gVeNrtQe9Vha5Fxni5fv8r+H+KstzHveai+fPEmOAHnX1Qh7L7sqdYdg5CZ A8ZDKxtV8dMQ85varbMXILStqAWfgS6CTUm3oUT4= Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v4CIH3US015639; Fri, 12 May 2017 13:17:03 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Fri, 12 May 2017 13:17:02 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v4CIH2xI019904; Fri, 12 May 2017 13:17:02 -0500 From: Jean-Jacques Hiblot To: , , , , Date: Fri, 12 May 2017 20:16:34 +0200 Message-ID: <1494613000-8156-17-git-send-email-jjhiblot@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494613000-8156-1-git-send-email-jjhiblot@ti.com> References: <1494613000-8156-1-git-send-email-jjhiblot@ti.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 16/22] mmc: disable the mmc clock during power off 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Kishon Vijay Abraham I There is no point in having the mmc clock enabled during power off. Disable the mmc clock. This is similar to how it's programmed in Linux Kernel. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/mmc/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 70b7d19..415484e 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1943,6 +1943,7 @@ static void mmc_power_up(struct mmc *mmc) static void mmc_power_off(struct mmc *mmc) { mmc_set_vdd(mmc, false); + mmc_set_clock(mmc, 1, true); } static void mmc_power_cycle(struct mmc *mmc)