From patchwork Fri Feb 14 18:29:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 3653341 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 163489F1EE for ; Fri, 14 Feb 2014 18:31:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 492BD2021B for ; Fri, 14 Feb 2014 18:31:20 +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 54C462013A for ; Fri, 14 Feb 2014 18:31:19 +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 1WENWv-0001ed-3G; Fri, 14 Feb 2014 18:30:29 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WENWq-0001Bq-53; Fri, 14 Feb 2014 18:30:24 +0000 Received: from mail-ig0-f176.google.com ([209.85.213.176]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WENWn-0001A2-1r for linux-arm-kernel@lists.infradead.org; Fri, 14 Feb 2014 18:30:21 +0000 Received: by mail-ig0-f176.google.com with SMTP id r2so100130igi.3 for ; Fri, 14 Feb 2014 10:30:00 -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:in-reply-to :references; bh=a400STUyaQIjuA/PK3w8auFoBBZea/E+A3l/m3+SuZg=; b=Lcqmb0OpQhbhBUdecTIbIdp/2b3wYK2DskYVVOnou53GdWL8PW7ny3ZrT4LFrFNd+W MuZgC+FU14ioXSIhXf4197D8uIis/PVbqNhYYizWTYPHxcWpMhw92gaDtN2prA2tqKCK Z0okjvbY/+K3QEUt8MF0paofCOj94voXA+Z3TG81yjJwT7E0Sr/ZCCI3hW6w8dY7posl FhCHxR5bD6wiyDGN2zG9UIUOfgVH7pu3+/XLoPiphA7CYS/IkaFdoLAl9pDZJEm3uVir gxFzQNEqD73d7krdWPbYP7CAJZd3kd0lLrul/0SPK9hBKh24Uu/Qwc45Dj7zBOVz5jIL /Cuw== X-Gm-Message-State: ALoCoQl13EEtZJsFLmAzgcdsoVzHy9R/RD83jDaILMQz4xrngcnsH8JklN33eMG/g2e4XZbLKUMR X-Received: by 10.50.29.70 with SMTP id i6mr3986354igh.21.1392402599998; Fri, 14 Feb 2014 10:29:59 -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 c17sm6214220igo.4.2014.02.14.10.29.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 10:29:59 -0800 (PST) From: Alex Elder To: mturquette@linaro.org, mporter@linaro.org, bcm@fixthebug.org Subject: [PATCH v2 2/3] clk: bcm281xx: don't disable unused peripheral clocks Date: Fri, 14 Feb 2014 12:29:19 -0600 Message-Id: <1392402560-12929-3-git-send-email-elder@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392402560-12929-1-git-send-email-elder@linaro.org> References: <1392402560-12929-1-git-send-email-elder@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140214_133021_150288_79F914E1 X-CRM114-Status: GOOD ( 11.74 ) X-Spam-Score: -2.6 (--) Cc: Tim Kryger , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 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.8 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 Acked-by: Mike Turquette --- 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); }