Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp315607imm; Thu, 7 Jun 2018 19:29:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJZDORY5EuQhCYg8Aq3mWJndvMRISwNcXsP7eI2T6avPY3thYvdZB4kA02TLj9aJ9DP/vAj X-Received: by 2002:a17:902:8604:: with SMTP id f4-v6mr4578240plo.4.1528424942676; Thu, 07 Jun 2018 19:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528424942; cv=none; d=google.com; s=arc-20160816; b=zE2KfRZp8eE76thsw7byD7vyS6k3XGvdOkfwM+RJqr8/OdnATeDZQhxvxpaOrcyWhQ +hYkjEUeGWSPuEtBiFDh5zwjVaIk9OlCmirj46X152kxSo2A5ne/LHrcbuTVUptDLO8e CLKCPgrc/iRv90UKDPcUHnSweYjAG41HXSoT3npGCXMqCZ0Xj+I0IrpsEKgFBPImW2TV q6j3w5cULQl5vfnU2LKNeQBVvWSCumB9SJphBefLZuLWtScGgmeQYO/jhR3xbp5ZqgxD 1I1b3GhodBMqSHCFYgcX1KMySQUya13oIe86y3mSBadU5TjbOwyWw/lYAI/qILt0tcMg 6eEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to:arc-authentication-results; bh=XPfgh2u+OMyRnsn5PEe0W641WgAq1lgMXu5x8kOVIQU=; b=QOQ+Rx6EUvFIeEneqaSSyW0ten3ll1uueXktfqL6IgpLetoMETO024vId+WjL5HVFu 5Cmw9+/Sw9DCN5bmwnPC0EArTVUtSxqIGs9RhyRo60tE1WVG1hTBK7/+BqQZq70xPmsF IF5Uj6rmUPBnJx39Ry0DnuuEHD9GjtLMVwaw4uriGD34zaVgSMz1jPpBJ3s7d9bYb2vw QYXhWfcsBhBdN/bphrDGr9f+qdrdzz2ozVo+Wrfe36lAJ6gtGwL20FcjrSLpeQ972W54 KqmDOBqqTa801aWMDfQ+Hj73sVDYg9SmLCSMdq2Af47pWxvliOwi6ujq4QNzQI6uWNgQ cNEA== 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 y2-v6si6843478pfl.133.2018.06.07.19.28.48; Thu, 07 Jun 2018 19:29:02 -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 S1753124AbeFHC1F (ORCPT + 99 others); Thu, 7 Jun 2018 22:27:05 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:58522 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752426AbeFHCY3 (ORCPT ); Thu, 7 Jun 2018 22:24:29 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id ECBC42A331; Thu, 7 Jun 2018 22:24:28 -0400 (EDT) To: Benjamin Herrenschmidt Cc: Michael Schmitz , , , Message-Id: In-Reply-To: References: From: Finn Thain Subject: [PATCH v2 03/12] macintosh/via-pmu: Don't clear shift register interrupt flag twice Date: Thu, 7 Jun 2018 22:24:28 -0400 (EDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The shift register interrupt flag gets cleared in via_pmu_interrupt() and once again in pmu_sr_intr(). Fix this theoretical race condition. Tested-by: Stan Johnson Signed-off-by: Finn Thain Reviewed-by: Geert Uytterhoeven --- drivers/macintosh/via-pmu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 74065ea410bd..4c1bae5380c2 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -1458,7 +1458,6 @@ pmu_sr_intr(void) if (in_8(&via[B]) & TREQ) { printk(KERN_ERR "PMU: spurious SR intr (%x)\n", in_8(&via[B])); - out_8(&via[IFR], SR_INT); return NULL; } /* The ack may not yet be low when we get the interrupt */ -- 2.16.4