Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754644AbbFKPxQ (ORCPT ); Thu, 11 Jun 2015 11:53:16 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:37007 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752391AbbFKPxK (ORCPT ); Thu, 11 Jun 2015 11:53:10 -0400 Message-ID: <5579AEE7.4070104@linaro.org> Date: Thu, 11 Jun 2015 17:53:11 +0200 From: Daniel Lezcano User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Viresh Kumar , Thomas Gleixner CC: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Magnus Damm Subject: Re: [PATCH 6/6] clocksource: em_sti: Migrate to new 'set-state' interface References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1326 Lines: 38 On 06/08/2015 03:40 PM, Viresh Kumar wrote: > Migrate em_sti driver to the new 'set-state' interface provided by > the clockevents core, the earlier 'set-mode' interface is marked > obsolete now. > > This also enables us to implement callbacks for new states of clockevent > devices, for example: ONESHOT_STOPPED. > > NOTE: This also drops a special check: > > if (old_mode == CLOCK_EVT_MODE_ONESHOT) > em_sti_stop(p, USER_CLOCKEVENT); > > as it doesn't look like that important. This driver only supports > ONESHOT and we can only move only to SHUTDOWN from ONESHOT and. > Also on second call (on shutdown), em_sti_stop() would return without > disabling the device again. > > Cc: Magnus Damm > Signed-off-by: Viresh Kumar > --- Acked-by: Daniel Lezcano [ ... ] -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- 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/