From mboxrd@z Thu Jan 1 00:00:00 1970 From: tglx@linutronix.de (Thomas Gleixner) Date: Wed, 1 Jul 2015 15:28:08 +0200 (CEST) Subject: [PATCH v2 4/9] arm: twr-k70f120m: timer driver for Kinetis SoC In-Reply-To: References: <1435667250-28299-1-git-send-email-pawelo@king.net.pl> <1435667250-28299-5-git-send-email-pawelo@king.net.pl> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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