From patchwork Fri Sep 18 13:22:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 313191 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp1333437ilg; Fri, 18 Sep 2020 06:23:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPMi+egRSJO8ikInZ3FXjJdsEaKdbaI/poITc13pz06Q/7OTSm5d9I02vVk1vdFTJ+Uzcb X-Received: by 2002:a17:906:4c58:: with SMTP id d24mr37430749ejw.108.1600435406948; Fri, 18 Sep 2020 06:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600435406; cv=none; d=google.com; s=arc-20160816; b=Oerxc5QB6M0g1f1F9HzNt4pzO8qzf1IkaWG9QiZglw5vQ8dkZx2M2lWtMrUsjrTDj/ /uvXObed2DZl1+mE+XmXHSB0UHPNICaDdoKHee2uMUHZmiNVFNHq73OQzwgbo6IgswuF 7NYssKed7aHb3Gp57QewPMe7QbU8yUB0WvViArVdfWKbu4fPT6BH+FMGkA+NPToWzOOA udLcfnLOspUbXjHGfmIz4wghdELB7zQ5vhzDQfwse5x3HW2UPD1Nsi8J4Q/x9ZlK+2rW KzaiECMiH7uScl7s4OyCgrtgQW8TyPvG9/CITHcYOkWq28NPs5946Fcah7xSP7SLRTKe yqiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=S0eLwKyVCSo+aLflQiwWV0eJO7FpFWPlnvWmy3olT8A=; b=c9TIZ8rjomWG5VlCkGeeD5T/rAuFctQyJIfRRIAlAJ8zkM8ZlrrJInzV6aYeS8+3zi f8ZiArD4CfdIs7R8Qy/GUYMB42ztK4RFRqDrYHSxxIq4L4s22DDMd2I/lTWCh6b2gH8Y CKkrts7oOAudkl43SClW0irGnyAzrI9fs3ia5YbqISBt8iZVlsZ37Lh77/BKdhhcmuNv 8Wq+0tk1Y4Sh83AfUcyQ1BrC3UMOovb4i17YUs6ejXBuSN1sRCyGUrLNvKDhN83ibBuP FpbLrVaC0b66iO2DSocvUphdS8BNXMP+2DvFx8tpGEtLApvPWY1UMmfRGag9w3tg/IKb 3q6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr21si2259981ejc.186.2020.09.18.06.23.26; Fri, 18 Sep 2020 06:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726825AbgIRNXZ (ORCPT + 6 others); Fri, 18 Sep 2020 09:23:25 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13305 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726126AbgIRNXR (ORCPT ); Fri, 18 Sep 2020 09:23:17 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7B91DB9DB31F4614ACC2; Fri, 18 Sep 2020 21:23:08 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 18 Sep 2020 21:23:00 +0800 From: Zhen Lei To: Rob Herring , devicetree , Daniel Lezcano , Thomas Gleixner , Haojian Zhuang , linux-kernel CC: Zhen Lei , Libin , Kefeng Wang , Jianguo Chen Subject: [PATCH v3 4/9] clocksource: sp804: remove a mismatched comment Date: Fri, 18 Sep 2020 21:22:32 +0800 Message-ID: <20200918132237.3552-5-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20200918132237.3552-1-thunder.leizhen@huawei.com> References: <20200918132237.3552-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.253] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org writel(0, base + TIMER_CTRL); ... ... writel(xxx | TIMER_CTRL_PERIODIC, base + TIMER_CTRL); The timer is just temporarily disabled, and it will be set to periodic mode later. The description of the field TimerMode of the register TimerXControl as shown below: 0 = Timer module is in free-running mode (default) 1 = Timer module is in periodic mode. Signed-off-by: Zhen Lei --- drivers/clocksource/timer-sp804.c | 1 - 1 file changed, 1 deletion(-) -- 1.8.3 diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c index 097f5a83163c6e1..a443f392a8e7d63 100644 --- a/drivers/clocksource/timer-sp804.c +++ b/drivers/clocksource/timer-sp804.c @@ -76,7 +76,6 @@ int __init sp804_clocksource_and_sched_clock_init(void __iomem *base, if (rate < 0) return -EINVAL; - /* setup timer 0 as free-running clocksource */ writel(0, base + TIMER_CTRL); writel(0xffffffff, base + TIMER_LOAD); writel(0xffffffff, base + TIMER_VALUE);