From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Ball Subject: Re: [PATCH 2/2] dw_mmc: Enable low-power mode for the card clock. Date: Thu, 10 Feb 2011 19:44:31 +0000 Message-ID: <20110210194431.GB19076@void.printf.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from void.printf.net ([89.145.121.20]:60622 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752507Ab1BJToc (ORCPT ); Thu, 10 Feb 2011 14:44:32 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Will Newton Cc: linux-mmc@vger.kernel.org Hi, On Thu, Feb 10, 2011 at 10:40:57AM +0000, Will Newton wrote: > 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, Pushed to mmc-next for .39, thanks. -- Chris Ball One Laptop Per Child