Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp159516yba; Fri, 12 Apr 2019 00:38:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMsKI2ujGUp27Y1xx/yZvvBTV260VTDS/rzAidnO9FV44qGg1hzoZN1qYK3EOXhmu+lUl7 X-Received: by 2002:a63:7843:: with SMTP id t64mr34439505pgc.130.1555054693628; Fri, 12 Apr 2019 00:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555054693; cv=none; d=google.com; s=arc-20160816; b=PJPl2T0/hPpBSR8bomPUoc8yul4FzUswEtudmzSlKMT1S/T65dJYOysY8YtkMGvuVs zlG2V0ae4rv2/pHubSctO+gEGdQhrYHDViMKmqVe6WGjG0dybkBNLEUYMPngD52oBeV0 c5Yu1TxFlYOUT6lwJd4ISYKpxX1E5aBagzXfOLljdXQiYK2Hwblk175xbch+CNbUU3Gs G/yRX+JECsBvw9DUvlrQ0w0kPcHzKaHvzwJbje4L6shZvnmNJMAxWgx0s/1JC8vM10rn WIKhpL39zsjVl6mSezFM3q0c7xPckNLiaPnXNCqbYSkAgUcDoJSg7z+at2iMf+D3fSDx Qy4A== 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=+NZ2dFSl2yj4PhIVdgXm8ai0m5+Q+yuVR4hKAYsUe/Y=; b=t+bnK/deYaEB45KG3EGq4SqrEAChqY8yq6C6qgEg0Z856r/gnfJRTovEEJ9vjMosAH 5Eub1WmPKV+Gax1wN3FCb84yurmJo4JZs6YcyEE4Lks1k7yhJKHimQk+sidHxC9de1xB avv+IM4xunEBy5iQLSrIR5slyEJh93anZeAkPpjYF46J8+KoeszeVtEgRUZf+9w+mnCh SZ8MsY33YyRO1xx0y2B6ARDPVff+Hn8B3PfiYdco1N05jXHuiWPczyeaESTTewncuYwe vqkIBpIjY0WeNxs8wc50mAatqm0/2ufPwyECFWpSohFJuDi+PkS8E8MBH5rI09V3HfaO r4Cg== 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 z13si22523233pgv.334.2019.04.12.00.37.57; Fri, 12 Apr 2019 00:38:13 -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 S1727169AbfDLHhI (ORCPT + 99 others); Fri, 12 Apr 2019 03:37:08 -0400 Received: from mx.socionext.com ([202.248.49.38]:45657 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfDLHhI (ORCPT ); Fri, 12 Apr 2019 03:37:08 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 12 Apr 2019 16:37:07 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 321EA180C0E; Fri, 12 Apr 2019 16:37:07 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 12 Apr 2019 16:37:07 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id BBC8D1A15B7; Fri, 12 Apr 2019 16:37:06 +0900 (JST) Received: from M20VSDK.e01.socionext.com (unknown [10.213.118.34]) by yuzu.css.socionext.com (Postfix) with ESMTP id A9E94120499; Fri, 12 Apr 2019 16:37:06 +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 v2 1/3] clocksource/drivers/timer-milbeaut: Fix to enable one-shot timer Date: Fri, 12 Apr 2019 16:36:49 +0900 Message-Id: <1555054611-23566-2-git-send-email-sugaya.taichi@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1555054611-23566-1-git-send-email-sugaya.taichi@socionext.com> References: <1555054611-23566-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. Fixes: b58f28f306db ("clocksource/drivers/timer-milbeaut: Introduce timer for Milbeaut SoCs") 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