From patchwork Sat Feb 23 13:06:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 159113 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp33180jad; Sat, 23 Feb 2019 05:08:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IYi+nDDeaEpyInJrx5UGwRqYc67vDXbHhQ/w3kxJEl9JIzVpyJZAhgcf1OqTS1+RJmUArS2 X-Received: by 2002:a63:c04b:: with SMTP id z11mr8645632pgi.135.1550927285308; Sat, 23 Feb 2019 05:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550927285; cv=none; d=google.com; s=arc-20160816; b=AEmvrEPpOYCeOpTXBEA//brKHWyWVer45asfGYRWnlOtLZEgSpdUbssnWdMAaIPlh8 t+tY0ubCyn/Ps2bpFWpBlnkKYDXNXHoDd791HrCr1hJ8+toTMqeCVEXWQRiHe7q8bbQg hlQxQEMVFySVl4tidZjllI3srqkv4BXYNNUekG8cMzYTSK0k76cqnUziIDkjXteR+9EY /XZNwFENFGLg08XR4rkWVWcgpc5+itQ1oNyM/wigcpYKtMQNmZC8fTCnLzuwydOpPqha 0tv5nFehff1imXrW9zLCIHrLS6ApSb15l5fxxGV6o1QOsZqxjDfzfkRqpkuf2F9O299O EnmA== 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=1aU82OCB8EaU5gSyx1GLNfzRZ/n+CtM0wF3xQO3ltdE=; b=O3ari3bg3H9l8bUmu34zyBFc3wkTlZtlSy8I5+ZDCnF7rtRlmYWrdmo7uF9oJEIMcF YdBg5JM7T0t4gMRrYl+KDdXLwwfZYOVF9ePtnXLxKRkRm/nNS6PJLpeASt/77TSezfVu 3+a/Iaj+wynck2iUpgwDxcKAgIRVBwajskbz/TXmFyYdfPNzHXhWYywy88bYqA9cNsHe 1q9QtGw4CovCG65yBsJ6xEJxmFWQ5Tci3BS6Ogdh9NoMDHQ6vEN71lYFarZAdp8Y5/2q U4JfcDvL5rlnH8tWAW3uaMUYPsM/yPCZ/OEnzHHZL07dw35A9uG9WNCwZu9jRSB+dpou HDyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qSVc/DD1"; 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 91si3868840ply.214.2019.02.23.05.08.05; Sat, 23 Feb 2019 05:08:05 -0800 (PST) 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="qSVc/DD1"; 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 S1727876AbfBWNID (ORCPT + 32 others); Sat, 23 Feb 2019 08:08:03 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42739 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727832AbfBWNIB (ORCPT ); Sat, 23 Feb 2019 08:08:01 -0500 Received: by mail-wr1-f65.google.com with SMTP id r5so5168863wrg.9 for ; Sat, 23 Feb 2019 05:08:00 -0800 (PST) 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=1aU82OCB8EaU5gSyx1GLNfzRZ/n+CtM0wF3xQO3ltdE=; b=qSVc/DD17GWnUdCpaw7WaO089XVB4WI0aYdiodmu3f4mRuCbyMNJjLWac5g+UrKCQH z5WOU7kh32bdNH1BYvU5e73cwM1JmBOGIArhuhbVUZPeYPVjs7OhbIfQPSm06yXJmvZC 7MePrRJ/7paUPIdNOEjGgDt+YrxchIsvPmno26wEolNiHDFzqNalM2LxtzZhTPHmBoJg zlCMZ9qGohEvCxa25K/jTtMRzVF8icL/EeS3xumqm7Bi95oUXE+uABbAD+HAPAZ6W+Z0 Q22ZJV1TK8DE1kk4ypHu5Pqu3PS/UYih/I0c8u53EQvgweT2Wcg1dwoNOkCMJX9HTkNG E/EA== 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=1aU82OCB8EaU5gSyx1GLNfzRZ/n+CtM0wF3xQO3ltdE=; b=Y/uz6KLtEyuzGKYFFTl61eRdD1AdoNTpvh4zOQHoHtt8p6IwJsf1CpoSkCs8i5DfF/ 8qo0PUNhI86ZXkTtDC+o6TYG+zj9YBYWSvwY/MmS0V3zL5Z0yxzJ0l7WUqaeTIeafgC2 9r8npDpJH+IzTV6ZYCJakxYYA2GV6xHqT76Sc8qc5MzgDW+7Xoola5IkiJuOSC0kMqCE s9d7nytsmX5TqNQGiIH9wHHUK/c+Ph1xvTyHp73OyBTEQhoaiTXrhTYz4xHR7Gs2T/Wi NF0e2Ja+5ECv8fTjyaPZa0paxrmWYEBdfCPd4uaWBV9u5EiMgasXn+ffwZqs/ABQLb4N C9HA== X-Gm-Message-State: AHQUAubnFjkgtP0APMjgKRlHwBDSbMOiDguoHnD/f50wq48by3VyptzQ 81YX6EpWyTM6MgdxlsPwwJUoJA== X-Received: by 2002:a5d:4985:: with SMTP id r5mr6191029wrq.90.1550927279831; Sat, 23 Feb 2019 05:07:59 -0800 (PST) Received: from clegane.local (189.126.130.77.rev.sfr.net. [77.130.126.189]) by smtp.gmail.com with ESMTPSA id i12sm7830746wrq.21.2019.02.23.05.07.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Feb 2019 05:07:59 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Stuart Menefy , stable@vger.kernel.org, Marek Szyprowski , Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org (moderated list:ARM/SAMSUNG EXYNOS ARM ARCHITECTURES), linux-samsung-soc@vger.kernel.org (moderated list:ARM/SAMSUNG EXYNOS ARM ARCHITECTURES) Subject: [PATCH 04/18] clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown Date: Sat, 23 Feb 2019 14:06:52 +0100 Message-Id: <20190223130707.16704-4-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190223130707.16704-1-daniel.lezcano@linaro.org> References: <20190223130707.16704-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stuart Menefy When shutting down the timer, ensure that after we have stopped the timer any pending interrupts are cleared. This fixes a problem when suspending, as interrupts are disabled before the timer is stopped, so the timer interrupt may still be asserted, preventing the system entering a low power state when the wfi is executed. Signed-off-by: Stuart Menefy Reviewed-by: Krzysztof Kozlowski Tested-by: Marek Szyprowski Cc: # v4.3+ Signed-off-by: Daniel Lezcano --- drivers/clocksource/exynos_mct.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 1e325f89d408..d55c30f6981d 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -411,6 +411,7 @@ static int set_state_shutdown(struct clock_event_device *evt) mevt = container_of(evt, struct mct_clock_event_device, evt); exynos4_mct_tick_stop(mevt); + exynos4_mct_tick_clear(mevt); return 0; }