Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754150AbbGAN2e (ORCPT ); Wed, 1 Jul 2015 09:28:34 -0400 Received: from www.linutronix.de ([62.245.132.108]:38810 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753179AbbGAN20 (ORCPT ); Wed, 1 Jul 2015 09:28:26 -0400 Date: Wed, 1 Jul 2015 15:28:08 +0200 (CEST) From: Thomas Gleixner To: Paul Osmialowski cc: Greg Kroah-Hartman , Ian Campbell , Jiri Slaby , Kumar Gala , Linus Walleij , Mark Rutland , Michael Turquette , Pawel Moll , Rob Herring , Russell King , Stephen Boyd , Vinod Koul , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, Arnd Bergmann , Geert Uytterhoeven , Nicolas Pitre , Paul Bolle , Uwe Kleine-Koenig , Anson Huang , Frank Li , Jingchang Lu , Rob Herring , Yuri Tikhonov , Sergei Poselenov , Alexander Potashev Subject: Re: [PATCH v2 4/9] arm: twr-k70f120m: timer driver for Kinetis SoC In-Reply-To: Message-ID: References: <1435667250-28299-1-git-send-email-pawelo@king.net.pl> <1435667250-28299-5-git-send-email-pawelo@king.net.pl> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 986 Lines: 32 On Wed, 1 Jul 2015, Paul Osmialowski wrote: > Hi Thomas, > > On Wed, 1 Jul 2015, Thomas Gleixner wrote: > > > > + clockevents_register_device( > > > + &kinetis_clockevent_tmrs[chan].evtdev); > > > + > > > + kinetis_pit_init(&kinetis_clockevent_tmrs[chan], > > > + (rate / HZ) - 1); > > > + kinetis_pit_enable(&kinetis_clockevent_tmrs[chan], 1); > > > > No point doing this. The core code has invoked the set_periodic call > > back via clockevents_register_device() already. > > > > As I removed this kinetis_pit_enable() line, the timer did not start, > therefore the system became unusable. What could be possible reason for that? Well, you need to move both, the init and the enable into set_periodic(). Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/