From patchwork Mon Aug 10 09:51:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 52220 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id A88E32152A for ; Mon, 10 Aug 2015 10:14:50 +0000 (UTC) Received: by lagz9 with SMTP id z9sf40555684lag.3 for ; Mon, 10 Aug 2015 03:14:49 -0700 (PDT) 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=Xr3BklP6COpx9+Nf4pnEtOtmIw+NHbjI5g0yAN5vDS8=; b=DHVquFvY7wz3rd0p+6J4JDY9d89Jo7CBAKLhxWM9Xoe0BEGJhrg9vg5hnuTzqPyi7j Gu6pwtSm73B3o0BOpoOa0i4FkvP0UzvmcHbVigo/I6ABUS6KKo+Xk1T7PvU/3xeYwmUn xd5p3cnPPu+WfFw8Mu4EV5S0UyCmmmdgxftAferY8UQYCd7exQdhHjpAA4SAg8S3u7WS 7Me2POH8W93W7Fv+jXuPtXhVqBjLez29HLyMzOKOUHHxRMM/RuOpDT3YV8CrveIV7aU3 gtUYor39Sj6f846zH337l+Spgs+0TfcOXf2DhEr2usW5apE4mljG4nkmuAhhZh6i6gNu 9wsQ== X-Gm-Message-State: ALoCoQlrCDgCERq1hxTepcS+k9cnsBUnrddCJYZKlUFbsG+7JCynu3nCEqFvLZqaext7U1+S466T X-Received: by 10.180.82.101 with SMTP id h5mr859938wiy.1.1439201689664; Mon, 10 Aug 2015 03:14:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.201 with SMTP id p9ls356293lae.42.gmail; Mon, 10 Aug 2015 03:14:49 -0700 (PDT) X-Received: by 10.112.62.133 with SMTP id y5mr16526217lbr.120.1439201689334; Mon, 10 Aug 2015 03:14:49 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id ef7si13790672lbb.44.2015.08.10.03.14.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 03:14:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbsx3 with SMTP id sx3so8576640lbb.0 for ; Mon, 10 Aug 2015 03:14:49 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr19579713lac.106.1439201689190; Mon, 10 Aug 2015 03:14:49 -0700 (PDT) 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.7.198 with SMTP id l6csp1837976lba; Mon, 10 Aug 2015 03:14:48 -0700 (PDT) X-Received: by 10.68.200.40 with SMTP id jp8mr43798899pbc.16.1439201687279; Mon, 10 Aug 2015 03:14:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ls2si12672486pab.25.2015.08.10.03.14.46; Mon, 10 Aug 2015 03:14:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933728AbbHJKOo (ORCPT + 28 others); Mon, 10 Aug 2015 06:14:44 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:36691 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932669AbbHJJx3 (ORCPT ); Mon, 10 Aug 2015 05:53:29 -0400 Received: by wicja10 with SMTP id ja10so30292161wic.1 for ; Mon, 10 Aug 2015 02:53:27 -0700 (PDT) X-Received: by 10.180.75.78 with SMTP id a14mr22986776wiw.43.1439200407460; Mon, 10 Aug 2015 02:53:27 -0700 (PDT) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id jr5sm28598154wjc.14.2015.08.10.02.53.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Aug 2015 02:53:26 -0700 (PDT) From: Daniel Lezcano To: mingo@kernel.org Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, Viresh Kumar , Stephen Warren , Lee Jones , linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2835...) Subject: [PATCH 03/74] clockevents/drivers/bcm2835: Migrate to new 'set-state' interface Date: Mon, 10 Aug 2015 11:51:20 +0200 Message-Id: <1439200352-26767-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439200352-26767-1-git-send-email-daniel.lezcano@linaro.org> References: <55C87382.4070309@linaro.org> <1439200352-26767-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.217.180 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: Viresh Kumar Migrate bcm2835 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. We weren't doing anything in the ->set_mode() callback. So, this patch doesn't provide any set-state callbacks. Acked-by: Daniel Lezcano Tested-by: Stephen Warren Cc: Stephen Warren Cc: Lee Jones Signed-off-by: Viresh Kumar Signed-off-by: Daniel Lezcano --- drivers/clocksource/bcm2835_timer.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/clocksource/bcm2835_timer.c b/drivers/clocksource/bcm2835_timer.c index 26ed331..6f28229 100644 --- a/drivers/clocksource/bcm2835_timer.c +++ b/drivers/clocksource/bcm2835_timer.c @@ -54,21 +54,6 @@ static u64 notrace bcm2835_sched_read(void) return readl_relaxed(system_clock); } -static void bcm2835_time_set_mode(enum clock_event_mode mode, - struct clock_event_device *evt_dev) -{ - switch (mode) { - case CLOCK_EVT_MODE_ONESHOT: - case CLOCK_EVT_MODE_UNUSED: - case CLOCK_EVT_MODE_SHUTDOWN: - case CLOCK_EVT_MODE_RESUME: - break; - default: - WARN(1, "%s: unhandled event mode %d\n", __func__, mode); - break; - } -} - static int bcm2835_time_set_next_event(unsigned long event, struct clock_event_device *evt_dev) { @@ -129,7 +114,6 @@ static void __init bcm2835_timer_init(struct device_node *node) timer->evt.name = node->name; timer->evt.rating = 300; timer->evt.features = CLOCK_EVT_FEAT_ONESHOT; - timer->evt.set_mode = bcm2835_time_set_mode; timer->evt.set_next_event = bcm2835_time_set_next_event; timer->evt.cpumask = cpumask_of(0); timer->act.name = node->name;