From patchwork Mon Sep 24 05:50:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 147337 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp326615lji; Sun, 23 Sep 2018 22:50:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV63tlMjvTKuhtrM1ru01OU6AnlRo3YmUH1aIZufLoV4EbNcrn98BvgqvEXK3WH/tZZmvexYS X-Received: by 2002:a17:902:6689:: with SMTP id e9-v6mr8993823plk.115.1537768252700; Sun, 23 Sep 2018 22:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537768252; cv=none; d=google.com; s=arc-20160816; b=D2AQIScezVNbDJmqawcZI3q4CpHojygIsaa+1V4SoRfu4i51bDxesS18sk8ZanimST b5dttJO9wmeZ4ZmgdainZpPngdvJCfr9t9wS1gTCdRWgtwqLRJ4P/Y7yuKWOzxBTAB4n x0SMBd7OeqxLF8Ct0nHYv4a48/tS74d6M77esAEV9P0b8v7jJAwsVeHFC9rhSZXXIX4u zCPrqHgezRFiX9r3nENKXdDLjtJ2wLyDjNKnbA8Snz9NtxWWodQKlbm4/PpP0yvujw/4 bSdv0m4zh5MzhatHfCkhVNgWXZuW+NzsDD2TIJWty10RhL6bCGsa9Ukq/XeSQnH135XU TIjg== 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:dkim-signature; bh=fgMUOehphvZNmcYG2yU0po/x+iNAshQ5kx+eSduG4BU=; b=g9WK7s1N/4hts3dyXhvKihFYOyxQCX7DEwEt0TjsUPAM2kmtoWUyVdNeNExeFez5J+ LweK+g+jVjxkCq49uxSgXG+Fw94W5IOijx0YkovvJfdEKKNKE9xs5poVbu+BqX6SZKpp TP5PnWiKBFXM4uJcGv4OiQ1V6OcBnhQz9BeI1LHx4qUIf3y0NKW5LWrLPr5kG/kkMiL7 LBq4i7i1fdv2oGd37Mvwdfz/vANjB/W5/2fYP6ZbeQHkFQBvIRglFpnkv9eiN45XtukN puF2DFsNyp6IekCPwAq0M4GvTEdTptLrgVBNycY3WUwiQ8n8SzgVizXvP03/BtDd0EOs h7Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="f/1h4Lig"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s72-v6si4451412pgc.369.2018.09.23.22.50.52; Sun, 23 Sep 2018 22:50:52 -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; dkim=pass header.i=@linaro.org header.s=google header.b="f/1h4Lig"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727478AbeIXLvK (ORCPT + 32 others); Mon, 24 Sep 2018 07:51:10 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36430 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbeIXLvK (ORCPT ); Mon, 24 Sep 2018 07:51:10 -0400 Received: by mail-wm1-f68.google.com with SMTP id y13-v6so3920145wmi.1 for ; Sun, 23 Sep 2018 22:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fgMUOehphvZNmcYG2yU0po/x+iNAshQ5kx+eSduG4BU=; b=f/1h4LigAFtCEy0LGTqrxM9U9Gdd+B+8C1BrN6xCq1OKGsWQ6RNvw7H6YVYtRQsZoa 9GvmyW32YMVq7eucpTmDr4eDcHlZ62bmF33fVarIT0Iy8ey6T090ar4Qw5I8PtlGaje9 grtUMj/3tqszJSLHGOWfsVbKNUijTAti/0NnI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fgMUOehphvZNmcYG2yU0po/x+iNAshQ5kx+eSduG4BU=; b=NkDtXaXdGJYLOne/y6Nx9ToU+fgJEj1E0ODQB8pRHgyfEDYFNzVrNswJSgMqK2BEXi ZUot6vyGPiMl02btlOKqhfPyaW3HLqDtUpaIgt9EJd2x4gO+4+ddyZx6WiQQT4WRRxiG KbvlKZ8k/fLXGhzD2pIkXuFnwZVtYxXLSY85XFgj8VuVu6L3gEBHXVujnjjINccoCgEM gMqcE/DXNCDdlI8O8tOdTrrm0A71Xiv+LXIv1wl9wMYDeC8kkC1waXow1xR68mMHsVvI OGD2UVNCE6VHE/lvCznoeiuVKfnFxnWOzQV9Er5fMWbY2eGM8j/m00JX0KSjSJigdRWx wHPA== X-Gm-Message-State: ABuFfohyYBIqKdRMhawsY0EGJpFeQ0cBotn4BiKNyDh8yR7v0zfz/G1X rxQ0rjLRAx1kbHOFF9EdnWq6uA== X-Received: by 2002:a1c:4007:: with SMTP id n7-v6mr6045597wma.108.1537768244026; Sun, 23 Sep 2018 22:50:44 -0700 (PDT) Received: from localhost.localdomain (89.154.136.77.rev.sfr.net. [77.136.154.89]) by smtp.gmail.com with ESMTPSA id w94-v6sm43886226wrc.38.2018.09.23.22.50.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Sep 2018 22:50:43 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: mingo@kernel.org, Keerthy , Tony Lindgren , linux-kernel@vger.kernel.org (open list:CLOCKSOURCE, CLOCKEVENT DRIVERS) Subject: [PATCH 1/2] clocksource/drivers/ti-32k: Add CLOCK_SOURCE_SUSPEND_NONSTOP flag for non-am43 SoCs Date: Mon, 24 Sep 2018 07:50:28 +0200 Message-Id: <1537768229-3241-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Keerthy The 32k clocksource is NONSTOP for non-am43 SoCs. Hence add the flag for all the other SoCs. Reported-by: Tony Lindgren Signed-off-by: Keerthy Acked-by: Tony Lindgren Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-ti-32k.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/clocksource/timer-ti-32k.c b/drivers/clocksource/timer-ti-32k.c index 29e2e1a..6949a91 100644 --- a/drivers/clocksource/timer-ti-32k.c +++ b/drivers/clocksource/timer-ti-32k.c @@ -97,6 +97,9 @@ static int __init ti_32k_timer_init(struct device_node *np) return -ENXIO; } + if (!of_machine_is_compatible("ti,am43")) + ti_32k_timer.cs.flags |= CLOCK_SOURCE_SUSPEND_NONSTOP; + ti_32k_timer.counter = ti_32k_timer.base; /*