From patchwork Fri Feb 4 11:17:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 531461 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p14BH5FL030917 for ; Fri, 4 Feb 2011 11:18:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751527Ab1BDLSB (ORCPT ); Fri, 4 Feb 2011 06:18:01 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:60945 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450Ab1BDLSA (ORCPT ); Fri, 4 Feb 2011 06:18:00 -0500 Received: by mail-bw0-f46.google.com with SMTP id 15so2595721bwz.19 for ; Fri, 04 Feb 2011 03:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=erh8rBnC53MYo0pR+7zXyYDbwMD/0k6qi0eICD/nnjM=; b=Lp8jZILF2SPPv/seRGSl9CoDaF7u153oB0FNf0WgXPSrK4S+mjTavw4m/b6f7mlFTe gUUEmHBr2jS19SS1PWV9JVvWfuBhEgdgQokgt2efiz9gLYnBi2nZRGTPJjWfKQXMZcNV w865cpQVVBr3tYzJm7qsf+oxvMoRs81yK3TxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sxudLjlztB/GuDR2iTTedzG8gHUnR88nz2iE+y0XgzYHuSOTRwYZ8DUfaj8jqULryY D5jQsZ8Zy5RxwKpAhwJbhR6Vz9PdJf774UiKsFGMd9AiNeUqJ0BUvZ8m4cHsIga+rfoT g5+VI9KVEeqWT+RlqWJoFcNFR8UphApjBQzm0= MIME-Version: 1.0 Received: by 10.204.61.10 with SMTP id r10mr11254950bkh.195.1296818279864; Fri, 04 Feb 2011 03:17:59 -0800 (PST) Received: by 10.204.75.70 with HTTP; Fri, 4 Feb 2011 03:17:59 -0800 (PST) Date: Fri, 4 Feb 2011 11:17:59 +0000 Message-ID: Subject: [PATCH 2/2] dw_mmc: Enable low-power mode for the card clock. From: Will Newton To: linux-mmc@vger.kernel.org Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 04 Feb 2011 11:18:02 +0000 (UTC) From af54e39992a23a5b6b6c853fede652b1df3be37f Mon Sep 17 00:00:00 2001 From: Will Newton Date: Thu, 3 Feb 2011 12:18:44 +0000 Subject: [PATCH 2/2] dw_mmc: Enable low-power mode for the card clock. Setting this bit in the clock enable register will stop the clock when the card is in the IDLE state. Signed-off-by: Will Newton --- drivers/mmc/host/dw_mmc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 0b0bedd..4cf560d 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -562,7 +562,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot) SDMMC_CMD_UPD_CLK | SDMMC_CMD_PRV_DAT_WAIT, 0); /* enable clock */ - mci_writel(host, CLKENA, SDMMC_CLKEN_ENABLE); + mci_writel(host, CLKENA, SDMMC_CLKEN_ENABLE | + SDMMC_CLKEN_LOW_PWR); /* inform CIU */ mci_send_cmd(slot, -- 1.7.3.4