From patchwork Wed Dec 22 08:50:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 426391 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 oBM8oTvP009201 for ; Wed, 22 Dec 2010 08:50:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752871Ab0LVIuP (ORCPT ); Wed, 22 Dec 2010 03:50:15 -0500 Received: from mail-px0-f179.google.com ([209.85.212.179]:58876 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752521Ab0LVIuM (ORCPT ); Wed, 22 Dec 2010 03:50:12 -0500 Received: by pxi20 with SMTP id 20so1368804pxi.10 for ; Wed, 22 Dec 2010 00:50:12 -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; bh=t3sTjxKTh3WW4S5FeHxPnzwZC/tzvd21o7X8InnykxU=; b=iZT7j/a1qLcdqtwFF6iULCl7bqQ1ahYaEv19h5i1vDVzziEG72wHUtElwaLYYfPKH6 /lFkjQJN0OhYZ+p4NcP3iH7FdIbv2zjQ8Du2ZRpdMw6OFplX/cjXWXWxlwrWlrFv59m1 NtPaOyIWCOLK+NpvvVZ+xsF7TuPjsFnjgKPug= 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; b=JC21TWrdeSgY+LERT3wlVwAV1r5cZF/HQ7tmqlGy/ZHMEk9alPAEfTQRQCRO9XgQrj byt1AwODrConjlQb0tmm2M+oRWOBdV/Lshje3iJj49hSbOgeRrMJwGDt8hz5esf632HE fdedZhPTpB51GjkLpn5Ho8Q++VGvmJ8W1fn0w= MIME-Version: 1.0 Received: by 10.142.173.3 with SMTP id v3mr5321571wfe.400.1293007812466; Wed, 22 Dec 2010 00:50:12 -0800 (PST) Received: by 10.143.32.14 with HTTP; Wed, 22 Dec 2010 00:50:12 -0800 (PST) In-Reply-To: <4D11B5D6.3030805@csr.com> References: <1288776170-10141-1-git-send-email-linus.walleij@stericsson.com> <20101221202408.GA12006@void.printf.net> <4D11B5D6.3030805@csr.com> Date: Wed, 22 Dec 2010 09:50:12 +0100 Message-ID: Subject: Re: [PATCH 1/2] mmc: agressive clocking framework v8 From: Linus Walleij To: David Vrabel Cc: Chris Ball , linux-mmc@vger.kernel.org, Ghorai Sukumar , Nicolas Pitre , Adrian Hunter , 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, 22 Dec 2010 08:50:30 +0000 (UTC) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 92e3370..b3ac6c5 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -235,7 +235,8 @@ static inline void mmc_host_clk_exit(struct mmc_host *host) mmc_host_clk_gate_delayed(host); if (host->clk_gated) mmc_host_clk_ungate(host); - BUG_ON(host->clk_requests > 0); + /* There should be only one user now */ + WARN_ON(host->clk_requests > 1); } #else