From patchwork Wed Nov 24 13:15:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 353021 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 oAODG3gf003768 for ; Wed, 24 Nov 2010 13:16:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754220Ab0KXNQB (ORCPT ); Wed, 24 Nov 2010 08:16:01 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:37004 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754140Ab0KXNQA convert rfc822-to-8bit (ORCPT ); Wed, 24 Nov 2010 08:16:00 -0500 Received: by wwa36 with SMTP id 36so9931391wwa.1 for ; Wed, 24 Nov 2010 05:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9mSTFYOb02HsQWPfK2WmGbngEcrUL5RpBhcxt0Vmw1c=; b=UrTwCDT7B2TYJEr3zPui4g2ldgJci+UNiS8XAD2kyrB5eUAnK3RdGBMIf/TwrmyZox DkJJrVcG8P/FGCquetRypdlnJkY3AbbeJa18kyXy8a5YbTjEaBPggQxL+8gp6I9szx1G 5BcLWVCPLe6OBtg5BV7U4hHsQEeu3mLi/ADFo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=A7RUgtqCbcxvyws4fC8/ho9ORt38yq19foYBX+bkV3HR52af3A/mrtuF6h3Chb1TAj Cp+d4TNw27OJC0MT0K7i7aYV9uO7B5NhioL7v7Ndp37NMhoIh1YDjGJdAwMfML508Klf jU21mZCB6npzVazhBg6oFisR0kTppPgaWDaQ4= MIME-Version: 1.0 Received: by 10.216.175.196 with SMTP id z46mr9886589wel.9.1290604558055; Wed, 24 Nov 2010 05:15:58 -0800 (PST) Received: by 10.216.132.160 with HTTP; Wed, 24 Nov 2010 05:15:57 -0800 (PST) In-Reply-To: <20101122232743.GA27895@void.printf.net> References: <1288776170-10141-1-git-send-email-linus.walleij@stericsson.com> <20101109035948.GA32119@void.printf.net> <20101122232743.GA27895@void.printf.net> Date: Wed, 24 Nov 2010 14:15:57 +0100 Message-ID: Subject: Re: [PATCH 1/2] mmc: agressive clocking framework v8 From: Linus Walleij To: Chris Ball Cc: linux-mmc@vger.kernel.org, Andrew Morton , Ghorai Sukumar , Nicolas Pitre , Adrian Hunter , David Vrabel , Kyungmin Park , jh80.chung@samsung.com 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.3 (demeter1.kernel.org [140.211.167.41]); Wed, 24 Nov 2010 13:16:04 +0000 (UTC) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 92e3370..69fa70a 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -68,9 +68,9 @@ static void mmc_host_clk_gate_delayed(struct mmc_host *host) unsigned long flags; if (!freq) { - pr_debug("%s: frequency set to 0 in disable function, " - "this means the clock is already disabled.\n", - mmc_hostname(host)); + dev_dbg(mmc_dev(host), "frequency set to 0 in disable " + "function, this means the clock is already " + "disabled\n"); return; } /* @@ -101,7 +101,7 @@ static void mmc_host_clk_gate_delayed(struct mmc_host *host) /* This will set host->ios.clock to 0 */ mmc_gate_clock(host); spin_lock_irqsave(&host->clk_lock, flags); - pr_debug("%s: gated MCI clock\n", mmc_hostname(host)); + dev_dbg(mmc_dev(host), "gated MCI clock\n"); } spin_unlock_irqrestore(&host->clk_lock, flags); mutex_unlock(&host->clk_gate_mutex); @@ -136,7 +136,7 @@ void mmc_host_clk_ungate(struct mmc_host *host) spin_unlock_irqrestore(&host->clk_lock, flags); mmc_ungate_clock(host); spin_lock_irqsave(&host->clk_lock, flags); - pr_debug("%s: ungated MCI clock\n", mmc_hostname(host)); + dev_dbg(mmc_dev(host), "ungated MCI clock\n"); } host->clk_requests++; spin_unlock_irqrestore(&host->clk_lock, flags);