From patchwork Fri Jan 23 23:44:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Soren Brinkmann X-Patchwork-Id: 5698261 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C36FB9F302 for ; Fri, 23 Jan 2015 23:46:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4A9020328 for ; Fri, 23 Jan 2015 23:46:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 15F9D20306 for ; Fri, 23 Jan 2015 23:46:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YEnuD-00046p-94; Fri, 23 Jan 2015 23:44:49 +0000 Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YEnu9-00042R-4A for linux-arm-kernel@lists.infradead.org; Fri, 23 Jan 2015 23:44:45 +0000 Received: by mail-oi0-f43.google.com with SMTP id z81so264678oif.2 for ; Fri, 23 Jan 2015 15:44:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=63Bavv79ppLglNWOFZcKOrzK2i6509LcqMuxnnOkdh8=; b=EpvM2g6GHgtbJtqeNpxDlOqXkf2NVseAtVnvNr2vJJaIB2FCKzgCEJP6WSa0un3EYy itOWTSrXYRIgaGX2Ek3TdzuXLOcH2IH6qGRA+buZEOGcxGz6ZKtT1BtMBUzRKh+Wxuhg 4AKvKVQx/5Fln07rPMTvM85FFN+m+xlMpJwmeB9BscQ0QJG0BjYBKVeulNoCxDH4mRUR 9wzlrEk6j30zs1xYPideXiHiJZKJOFGq5QR9prEDvb0P7jhcy0ikaR2R8bJrE/aR5o0k WvAoy74WGxm2Iipekg6eHeMIDB3XI48vCT0QdUfTyA52+SAc46Mix6rYpPjID5+kphSR uOmQ== X-Received: by 10.60.155.228 with SMTP id vz4mr6135100oeb.37.1422056662930; Fri, 23 Jan 2015 15:44:22 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id nt5sm1563124obb.26.2015.01.23.15.44.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jan 2015 15:44:22 -0800 (PST) From: Soren Brinkmann To: Michal Simek , Mike Turquette , Stephen Boyd Subject: [PATCH] clk: zynq: Force CPU_2X clock to be ungated Date: Fri, 23 Jan 2015 15:44:13 -0800 Message-Id: <1422056653-11271-1-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 2.2.2.1.g63c5777 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150123_154445_222423_1AC167E6 X-CRM114-Status: GOOD ( 10.59 ) X-Spam-Score: -0.7 (/) Cc: Soren Brinkmann , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 The CPU_2X clock does not have a classical in kernel user, but is, amongst other things, required for OCM and debug access. Make sure this clock does not mistakenly disabled during boot up by enabling it in the platforms clock driver. Signed-off-by: Soren Brinkmann --- I just noticed this on Linus' latest tip. I can't remember having had issues connecting the debugger before, but it might be a candidate for stable in case people report something like that. Sören drivers/clk/zynq/clkc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/zynq/clkc.c b/drivers/clk/zynq/clkc.c index c363106ed726..f8469315161d 100644 --- a/drivers/clk/zynq/clkc.c +++ b/drivers/clk/zynq/clkc.c @@ -346,6 +346,7 @@ static void __init zynq_clk_setup(struct device_node *np) clks[cpu_2x] = clk_register_gate(NULL, clk_output_name[cpu_2x], "cpu_2x_div", CLK_IGNORE_UNUSED, SLCR_ARM_CLK_CTRL, 26, 0, &armclk_lock); + clk_prepare_enable(clks[cpu_2x]); clk = clk_register_fixed_factor(NULL, "cpu_1x_div", "cpu_div", 0, 1, 4 + 2 * tmp);