From patchwork Wed Jul 19 17:24:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Salter X-Patchwork-Id: 108312 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp1090759obm; Wed, 19 Jul 2017 10:25:06 -0700 (PDT) X-Received: by 10.98.6.133 with SMTP id 127mr858764pfg.90.1500485106003; Wed, 19 Jul 2017 10:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500485105; cv=none; d=google.com; s=arc-20160816; b=WOPp+TJj8pt1eKOh44b8D6fi5letGgNCRrfbN58q3bjqn/lk22KiAudEucZPjRCjLz 4IrUaRAE2q+2JPOek0C65j8dyKfWix4kMWQ77Ok21nxl75hKfPjLWLTlQ9r2DNR+E4lK ssMdi80cJ7l36HPMINreDU73KnwJMAL2pQDeIUPLkV3pAZeZxpHHCma8iffPwAp125in kgazXgGcDo97s1Hps97isSMjefwhDKWJnu3wVNh92rigb4nR5eZK68s1XrDh+S4Dyi7N j6fAeKqG2vO1u/SpVzg8FyfdGU/f9drzBJE9+HIK6OLlqB2BbUvl+W7o0Ca5qg2eYr90 qXOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-filter:dmarc-filter:arc-authentication-results; bh=6iwL4+ABELp+5/uz6Xscm2VUfjhLHF8SfWlOiGe7pxs=; b=CL+nMbqg9XClbXx3WcNgZRcDNIW+jIW4y693MkimZyT7uo0xEvXxXv1HufkqvofTWz 7M4xwIsCDOYTulUepin9aU8DPM2nfcaFnSewFyU3WUI/iYqTUE/azdrtlMoQgeeifgLs s70aYXtcE/KvM58qcojcaoDk+RpaE1uJi6qT61ncAxn/e9qCAq820FLn0s6V2TpyKBmh 0DlfWj1VDVK8pRwGyiRFTdT84QxwdrMonUPwx8PVkkAu36to3PGyV0I0CyQxP/hYJJrL T0CR/Cdvo95SGpZe6wiwGa0Vpk/5uttmoHl6Cyxyxmh7eTl/fx4htGsMUDobKj3YbczU AQlA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f35si189499plh.9.2017.07.19.10.25.05; Wed, 19 Jul 2017 10:25:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754188AbdGSRZC (ORCPT + 25 others); Wed, 19 Jul 2017 13:25:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40436 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752994AbdGSRY7 (ORCPT ); Wed, 19 Jul 2017 13:24:59 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AFC44267C3; Wed, 19 Jul 2017 17:24:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com AFC44267C3 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=msalter@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com AFC44267C3 Received: from t540.localdomain (ovpn-120-245.rdu2.redhat.com [10.10.120.245]) by smtp.corp.redhat.com (Postfix) with ESMTP id 39E897F762; Wed, 19 Jul 2017 17:24:59 +0000 (UTC) From: Mark Salter To: "Rafael J . Wysocki" Cc: Tyler Baicar , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] acpi: apei: Enable APEI multiple GHES source to share an single external IRQ Date: Wed, 19 Jul 2017 13:24:27 -0400 Message-Id: <20170719172427.5478-2-msalter@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 19 Jul 2017 17:24:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Loc Ho This patch allows APEI generic error source table with external IRQ to share an single IRQ. Signed-off-by: Tuan Phan Signed-off-by: Loc Ho Signed-off-by: Mark Salter --- drivers/acpi/apei/ghes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.13.3 diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index d661d452b238..eed09fc664e8 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -1157,7 +1157,8 @@ static int ghes_probe(struct platform_device *ghes_dev) generic->header.source_id); goto err_edac_unreg; } - rc = request_irq(ghes->irq, ghes_irq_func, 0, "GHES IRQ", ghes); + rc = request_irq(ghes->irq, ghes_irq_func, IRQF_SHARED, + "GHES IRQ", ghes); if (rc) { pr_err(GHES_PFX "Failed to register IRQ for generic hardware error source: %d\n", generic->header.source_id);