From patchwork Wed Feb 12 20:05:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 3640601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 888879F369 for ; Wed, 12 Feb 2014 20:06:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF37720211 for ; Wed, 12 Feb 2014 20:06:15 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B3CD12018E for ; Wed, 12 Feb 2014 20:06:14 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDg4N-0003Br-OO; Wed, 12 Feb 2014 20:06:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDg4I-0007vi-Sl; Wed, 12 Feb 2014 20:06:02 +0000 Received: from mail-yk0-f178.google.com ([209.85.160.178]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDg4G-0007ug-3U for linux-arm-kernel@lists.infradead.org; Wed, 12 Feb 2014 20:06:00 +0000 Received: by mail-yk0-f178.google.com with SMTP id 79so16577496ykr.9 for ; Wed, 12 Feb 2014 12:05:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=a400STUyaQIjuA/PK3w8auFoBBZea/E+A3l/m3+SuZg=; b=Alf3IP6GALgkBPRByoWS5IMChyLUS6OeL8DlD5qtiVJobgfKaruLqg6pjFnq8H3B/i jz+lrzYTYvl+ii/IaetQystq+jVYHxYJV7eW8/XLGLdR3i77yLmHqItzNCeFFypohMin b1uNUWTjeg4bjfcX9Ga7OdPdYRKaVUhA/U3jYaY39brFud39G7dzpCN5bY8L3cBrgS1K rrgVSuEv6TTvi24gxaAsWbda7+TIvQ8x2o+ZEG3VoYDty5E3rgYSvN78IB7Wi+LtTy3n fosSVHHmNCBpzP5g+HXG7yVxjRh0eq4hDckIMLQACbtzPdU18LFXXdQBZ9ix1NMuQA7R 6hqQ== X-Gm-Message-State: ALoCoQmRTszYemXKw5uirYDG7jsadbH3Hu/WYnw1IXaZeitVxvCXq45K7pF0qFCpom+1xgh1xhtj X-Received: by 10.236.131.163 with SMTP id m23mr9645880yhi.61.1392235536182; Wed, 12 Feb 2014 12:05:36 -0800 (PST) Received: from localhost.localdomain (c-71-195-31-37.hsd1.mn.comcast.net. [71.195.31.37]) by mx.google.com with ESMTPSA id a67sm75209919yhj.10.2014.02.12.12.05.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 12:05:35 -0800 (PST) From: Alex Elder To: mturquette@linaro.org Subject: [PATCH] clk: bcm281xx: don't disable unused peripheral clocks Date: Wed, 12 Feb 2014 14:05:23 -0600 Message-Id: <1392235528-25795-1-git-send-email-elder@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140212_150600_180804_22683830 X-CRM114-Status: GOOD ( 11.63 ) X-Spam-Score: -2.6 (--) Cc: Tim Kryger , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matt Porter , Alex Elder X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the CLK_IGNORE_UNUSED flag when setting up a peripheral clock. This prevents unused clocks from getting disabled, and by doing this we can use the common clock code even before we've resolved all the spots that need to get a reference to their clock. Signed-off-by: Alex Elder Reviewed-by: Matt Porter --- drivers/clk/bcm/clk-kona-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/bcm/clk-kona-setup.c b/drivers/clk/bcm/clk-kona-setup.c index f1e88fe..c7607fe 100644 --- a/drivers/clk/bcm/clk-kona-setup.c +++ b/drivers/clk/bcm/clk-kona-setup.c @@ -579,7 +579,7 @@ static int peri_clk_setup(struct ccu_data *ccu, struct peri_clk_data *data, struct clk_init_data *init_data) { init_data->ops = &kona_peri_clk_ops; - init_data->flags = 0; + init_data->flags = CLK_IGNORE_UNUSED; return clk_sel_setup(data->clocks, &data->sel, init_data); }