From patchwork Wed Nov 26 13:08:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 41534 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BE04A25E18 for ; Wed, 26 Nov 2014 13:08:40 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id p9sf1777475lbv.1 for ; Wed, 26 Nov 2014 05:08:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=3jN3SiVWteeDMB81W3yl7JGnSiER32JDaGD+pz7b+Ec=; b=bwY/R6GVQzylXIlVP+v75kXnfpy/IsgvoGrEw1slc0a+yIm/I7feHDEmHmLtwlNeHA uoZLAfEz2c6xry9x9t6VaNzEvmRhZOwjPdMGyEH3NmoezjLMz+n/qHGABMvGvsjGTXEP OyTD4ml/XiBRr6ZGqzH6W7Gfk31T2GYn0h3nBEObsFoVziOl15rtZwJA35YBQ26Vx/7K xbMMmaf5NDkNMlIqU4Yn9nMk37gmC2s5PTr3CdoSRcI9ECbrhj+CTGlC9UlN0o2ihmWz 1Deh0r/KMMKmwOHDJMeBxwfZzLwK7JDmqAFGNF3S0vYE7O0mvnfBKR/E/9TPOJqeuyVm Dwnw== X-Gm-Message-State: ALoCoQl6Aay+uIUUwOjMkLQt8D1Bgvrhe5B0dHWjOsV7WUONABUly7xbDF/W+pPFMthsuK9a/VKQ X-Received: by 10.152.30.66 with SMTP id q2mr9154497lah.2.1417007319614; Wed, 26 Nov 2014 05:08:39 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.6 with SMTP id u6ls645735laj.26.gmail; Wed, 26 Nov 2014 05:08:39 -0800 (PST) X-Received: by 10.112.157.194 with SMTP id wo2mr33728769lbb.55.1417007319171; Wed, 26 Nov 2014 05:08:39 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id sf5si4352634lbb.46.2014.11.26.05.08.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Nov 2014 05:08:39 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id gf13so2358584lab.41 for ; Wed, 26 Nov 2014 05:08:39 -0800 (PST) X-Received: by 10.112.52.37 with SMTP id q5mr33461272lbo.32.1417007319006; Wed, 26 Nov 2014 05:08:39 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp615690lbc; Wed, 26 Nov 2014 05:08:37 -0800 (PST) X-Received: by 10.66.165.200 with SMTP id za8mr53740774pab.156.1417007316943; Wed, 26 Nov 2014 05:08:36 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id on3si6742711pdb.111.2014.11.26.05.08.36 for ; Wed, 26 Nov 2014 05:08:36 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbaKZNI0 (ORCPT + 26 others); Wed, 26 Nov 2014 08:08:26 -0500 Received: from mail-wg0-f47.google.com ([74.125.82.47]:63989 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbaKZNIW (ORCPT ); Wed, 26 Nov 2014 08:08:22 -0500 Received: by mail-wg0-f47.google.com with SMTP id n12so3683505wgh.20 for ; Wed, 26 Nov 2014 05:08:21 -0800 (PST) X-Received: by 10.194.92.82 with SMTP id ck18mr48174912wjb.103.1417007301661; Wed, 26 Nov 2014 05:08:21 -0800 (PST) Received: from mai.lan (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id c5sm7244307wik.3.2014.11.26.05.08.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Nov 2014 05:08:20 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ezequiel.garcia@free-electrons.com, yl22@csr.com Subject: [PATCH 2/4] clocksource: armada-370-xp: Add missing clock enable Date: Wed, 26 Nov 2014 14:08:12 +0100 Message-Id: <1417007294-19869-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417007294-19869-1-git-send-email-daniel.lezcano@linaro.org> References: <5475D044.5060607@linaro.org> <1417007294-19869-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ezequiel Garcia This commit makes sure the timer clock is prepared and enabled before retrieving its rate. Acked-by: Jason Cooper Acked-by: Gregory CLEMENT Acked-by: Wim Van Sebroeck Reviewed-by: Thomas Petazzoni Tested-by: Thomas Petazzoni Signed-off-by: Ezequiel Garcia Signed-off-by: Daniel Lezcano --- drivers/clocksource/time-armada-370-xp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers/clocksource/time-armada-370-xp.c index 0451e62..d8555f9 100644 --- a/drivers/clocksource/time-armada-370-xp.c +++ b/drivers/clocksource/time-armada-370-xp.c @@ -293,6 +293,7 @@ static void __init armada_xp_timer_init(struct device_node *np) /* The 25Mhz fixed clock is mandatory, and must always be available */ BUG_ON(IS_ERR(clk)); + clk_prepare_enable(clk); timer_clk = clk_get_rate(clk); armada_370_xp_timer_common_init(np); @@ -305,6 +306,7 @@ static void __init armada_370_timer_init(struct device_node *np) struct clk *clk = of_clk_get(np, 0); BUG_ON(IS_ERR(clk)); + clk_prepare_enable(clk); timer_clk = clk_get_rate(clk) / TIMER_DIVIDER; timer25Mhz = false;