From patchwork Fri Nov 16 23:44:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fernandes, Joel A" X-Patchwork-Id: 1757591 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 36989DF288 for ; Fri, 16 Nov 2012 23:42:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753567Ab2KPXmr (ORCPT ); Fri, 16 Nov 2012 18:42:47 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:52025 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753537Ab2KPXmr (ORCPT ); Fri, 16 Nov 2012 18:42:47 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id qAGNghHQ010095; Fri, 16 Nov 2012 17:42:44 -0600 Received: from DBDE70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id qAGNgfsr021031; Sat, 17 Nov 2012 05:12:41 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by dbde70.ent.ti.com (172.24.170.148) with Microsoft SMTP Server id 14.1.323.3; Sat, 17 Nov 2012 05:12:40 +0530 Received: from joelbox.am.dhcp.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with ESMTP id qAGNgbJH000840; Sat, 17 Nov 2012 05:12:38 +0530 From: Joel A Fernandes To: CC: Russ Dill , Matt Porter , Steve Kipisz , Jason Kridner , Tony Lindgren Subject: [PATCH] AM33XX: Clock: Fix JTAG disconnect during kernel boot Date: Fri, 16 Nov 2012 17:44:42 -0600 Message-ID: <1353109482-26478-1-git-send-email-joelagnel@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Set ENABLE_ON_INIT for debugss clock so that it is on during init and the usecount is incremented. Not doing so causes kernel to disable debugss clock to save power when CONFIG_OMAP_RESET_CLOCKS is set, causing a JTAG disconnect. Signed-off-by: Joel A Fernandes Cc: Russ Dill Cc: Matt Porter Cc: Steve Kipisz Cc: Jason Kridner Cc: Tony Lindgren --- Resending, as Cc list was dropped. arch/arm/mach-omap2/clock33xx_data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/clock33xx_data.c b/arch/arm/mach-omap2/clock33xx_data.c index b7b7995..d0b4313 100644 --- a/arch/arm/mach-omap2/clock33xx_data.c +++ b/arch/arm/mach-omap2/clock33xx_data.c @@ -585,6 +585,7 @@ static struct clk debugss_ick = { .clkdm_name = "l3_aon_clkdm", .parent = &dpll_core_m4_ck, .ops = &clkops_omap2_dflt, + .flags = ENABLE_ON_INIT, .enable_reg = AM33XX_CM_WKUP_DEBUGSS_CLKCTRL, .enable_bit = AM33XX_MODULEMODE_SWCTRL, .recalc = &followparent_recalc,