Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3575453imm; Mon, 2 Jul 2018 01:24:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeW0bKvo3zTIlRWADALZqdC1IJZiBo2Qd4nZwgJPz6TPNHECfl+mzBp2Xe4cJ5SQ/QXen05 X-Received: by 2002:a62:8d84:: with SMTP id p4-v6mr11510280pfk.251.1530519889159; Mon, 02 Jul 2018 01:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530519889; cv=none; d=google.com; s=arc-20160816; b=BrjHEvHQ1DaoVqJDN9RrtfCCda/GDxER5Hnc4Nc6sV4kCdBaU07RzPvnIhhT2EfZnA Ivllg2fYCuxj82Po5qS1Kt06/UxrLW3Ag014C2jUqAcr4jmHdhCSpYBVId1kWvwIBG/L qxlMVxa8A2OeNpZKjH2nTZZgBmHb5dXLrv+Puh8Bw7YhgBR0zSm0jrXe+Y7yEFlC9oAH v7ZREHc3cevRZm8AcBjb/0V9GNCA4eqE48wM9Xx6D5ohLTemCueUmfX965MhrPwxg25O /U5arVn7dTQL0EIB0FBIZlnN/TZTNMn3v/3hxjyogNzZW4T9ZsdF3pGAO/OuFk6UenyV Jvkg== 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=An4TW42qj8qn0CNoWNCzVlc4K8/RNjVp2Y52ihd+QBY=; b=r2+QKp4iNr7Hhz+EhWXFaBOrqkEIm8XHX/eftF/X1bske/NvRsX68ehA6udDZgr8Zp 0zElSV6FkR1tXqrbx2GpTu9uxjriJgYIU1FuQFJEJ/C1Ns+jRz6Tss2blD1Uo46cGhe7 d47KT9bGMeOpMzv2y6bxgvddz9jqPqAmoZIfMUmElOh3RsDSkggs2EBBIOXRjslCeKQX bS0WnI2YkPX93aLWuiq8emuDjqmHeOqGxmXEDMnsBKCxa+LWMOBuC4nAPWKkmBGTqj8+ S7v2Gd5lwMWTz8khrpFLuMcOAlhv9q34J9hxtQu74WP/nqWxkffC5229EQLlNsKkWXyx Cy8w== 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 b17-v6si15394759pls.467.2018.07.02.01.24.34; Mon, 02 Jul 2018 01:24:49 -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 S1754339AbeGBIX2 (ORCPT + 99 others); Mon, 2 Jul 2018 04:23:28 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:48740 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933559AbeGBIVV (ORCPT ); Mon, 2 Jul 2018 04:21:21 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 72A9A293A0; Mon, 2 Jul 2018 04:21:18 -0400 (EDT) To: Benjamin Herrenschmidt Cc: Michael Schmitz , , , Message-Id: <36cec2adcb532b5171ab4318b46a8d27d4195c07.1530519301.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH v4 03/11] macintosh/via-pmu: Don't clear shift register interrupt flag twice Date: Mon, 2 Jul 2018 04:21:18 -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 ba41220f618e..c313ddfdb17a 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -1421,7 +1421,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