Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2817400img; Sun, 24 Mar 2019 20:08:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOepNiSEKLZIW58+A0zKspWSa/zURsEJee3jrR+S5Gvxl6cy9IMsoFMbfY18VL/auiMYj7 X-Received: by 2002:a17:902:784c:: with SMTP id e12mr22909010pln.117.1553483307457; Sun, 24 Mar 2019 20:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553483307; cv=none; d=google.com; s=arc-20160816; b=n5XIWRBC8gRSOMhycW6Yopnt7RIQMcrc43rzX1HXMM9l3caUzibH1PCY7MWXEMeZ4z ntbKxrdik0eg0UJ98aadlWmOAhHazUoTc4aIsBvrBgpl1AxLrRJQdlmnfBvRR1Z/0L9V tbKFWUJwXkbsdFkGmY2w+Z71bzsIcSG5t4PtaJNeivJTbJMec3iycHmRKF4547XmYiVW 8ecD+g/vzvTLkxsFUBIJMivGAl3Rwd+Wb8pSK1Ko73beM5PkjQDbt/xP5aG+6n6gZYsX AzGpY0Nzojpopuuyp+98z35i9CZ0y228BHN9GDwQVEMo1za7AzSYP2DrniSValLeEdxr mjzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=TTxNR8bQaVYDG8g1bX4jbwne8A9fcTrvR1dVfSPX0zQ=; b=UZ0U0A9pRw7/qTdJf7XWfoN5Nul1wvnEYztToCm6LeXcMrv9ofDFX96jbGofCRmp5E b9TDb9NSSY+d5clYkI3cezSLzMEiz4/WZ+k6CQMn6cCdX/qg6AMyPxvNwporG9sJVIPn NJyYr5WIZ5OfE10G6QoQoPbRgEJh3viZcoFajA79VkDsbVsuZyTD1wKGm2WcZF68nwTx qEv30HkQrGBVnqDPhNqdd7oanCmq+21p4oUdpGZeZKVlcBLsKu9JBkvaP2vH4Vu/aATJ RWeFlOYo86f1RQhVCCfQRGbiWlZGCS2281GnMGE3n6I/eQk41m2qC6fdZvp+wGzhYeXz kvyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si944037ple.299.2019.03.24.20.08.12; Sun, 24 Mar 2019 20:08:27 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729384AbfCYDFl (ORCPT + 99 others); Sun, 24 Mar 2019 23:05:41 -0400 Received: from mx.socionext.com ([202.248.49.38]:52827 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729285AbfCYDFk (ORCPT ); Sun, 24 Mar 2019 23:05:40 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 25 Mar 2019 12:05:39 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 3A1666117D; Mon, 25 Mar 2019 12:05:39 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 25 Mar 2019 12:05:39 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 0E6C41A15B7; Mon, 25 Mar 2019 12:05:39 +0900 (JST) Received: from M20VSDK.e01.socionext.com (unknown [10.213.118.34]) by yuzu.css.socionext.com (Postfix) with ESMTP id F10E0120459; Mon, 25 Mar 2019 12:05:38 +0900 (JST) From: Sugaya Taichi To: Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org Cc: Takao Orito , Kazuhiro Kasai , Shinji Kanematsu , Jassi Brar , Masami Hiramatsu , Sugaya Taichi Subject: [PATCH 1/3] clocksource/drivers/timer-milbeaut: Fix to enable one-shot timer Date: Mon, 25 Mar 2019 12:05:47 +0900 Message-Id: <1553483149-8922-2-git-send-email-sugaya.taichi@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1553483149-8922-1-git-send-email-sugaya.taichi@socionext.com> References: <1553483149-8922-1-git-send-email-sugaya.taichi@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix mlb_set_oneshot_state() to enable one-shot timer. The function should stop and start a timer, but "start" statement was dropped. Kick the register to start one-shot timer. Signed-off-by: Sugaya Taichi --- drivers/clocksource/timer-milbeaut.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clocksource/timer-milbeaut.c b/drivers/clocksource/timer-milbeaut.c index f2019a8..9fd5d08 100644 --- a/drivers/clocksource/timer-milbeaut.c +++ b/drivers/clocksource/timer-milbeaut.c @@ -80,6 +80,8 @@ static int mlb_set_state_oneshot(struct clock_event_device *clk) u32 val = MLB_TMR_TMCSR_CSL_DIV2; writel_relaxed(val, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS); + val |= MLB_TMR_TMCSR_CNTE | MLB_TMR_TMCSR_TRG | MLB_TMR_TMCSR_INTE; + writel_relaxed(val, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS); return 0; } -- 1.9.1