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: 99727 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp444946qge; Fri, 12 May 2017 11:29:59 -0700 (PDT) X-Received: by 10.80.180.229 with SMTP id x34mr4409713edd.91.1494613799312; Fri, 12 May 2017 11:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494613799; cv=none; d=google.com; s=arc-20160816; b=OIwYOOjlrmlCkXG1akT/OEW5Fluj12R8STudunFQi9h3N13+LaVTzVHcmejeN8AGXE LpPS7cX53ktwUtCBB8pOLXaEMAD9rYdCi0Xgg0zzH66Cv9aIrCuo6sOmTg6PxvJEgXxJ izQpaJk09qC/Z2GwUD0PSThFcwS7aDWEBtgd+NUDxSnNRigkveA0eUuqrJJGuFPd8qp+ Ly9C0INdK4/EGtMqaDtHJ+K/yjApZnjaeGE7IMw4hsZ7VuiQhvNER/dNxcuOBjWEGsOG KwLiGBKFiJuMQA9ANY7FHA66uaKSuvdsEd56DOLiPrpBHBzM9KH003r1u+UCix4zDx79 hubQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=CYXPSz/QgiGapva4ByB6/17QtAnCgUfOIyXqQfafm3A=; b=bXFA54FydPMOOpUMMrUlhE4KasNrfK33yWHSvz7utBADeDPC9O+NxC9fqDXsI8MS/h 30x1hD4GT7mtkbOxFa7bo6cUZSFsiaQ6mMYLszDtHndYQPLKYefu6Umo0BuO986zumlj Zhm/on2mX+RJ6CQ3rxumjUQZk4k/K6TOZTRoxn7EmN8N5IHUuZwODoeXCGfMKbViYIGx kMYdOKLRWyS2OiUBrrN+q0beb+ipl9LUfxL3GnasaanZKl//ffP/NiVwlZtg7FEzRcOC n9IWxVhBJAi4JfY4oo5ID71kve3FE7YiQ6FIGKxxMZWvNrlVmt0b8WZx3jlW3Z3d0mql MwrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id i19si4452442eda.35.2017.05.12.11.29.56; Fri, 12 May 2017 11:29:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id 458BFC22068; 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)