From patchwork Thu Jul 20 21:36:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 9855745 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9DA5D601C8 for ; Thu, 20 Jul 2017 21:36:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EB55286D4 for ; Thu, 20 Jul 2017 21:36:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83673286FD; Thu, 20 Jul 2017 21:36:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 074C4286D4 for ; Thu, 20 Jul 2017 21:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=AC3V9X8d8fagOnxax+qUPSUuo8Zzs0OUaYpqZY+GOK4=; b=D+tNequZReJ32LL3nJBPM+x3oR QujXWIqdD1GMEqNaykPubCqhukys8TFVm6+riVB+QykWB9PzYJsnR4/fLXuw06qimpYnSPC/KA/bf 2ddSMaBCKtBugfEpam81f6LZrt+i2MJhUUJnndwM+Fk0XNdQf+SXsHZ3bzLZO8dX1UKd5lh+xqHQ0 Wnju8vmM7EOLcE30WiVTTGQ55ut/waqWZyNQ6LKfnx99SEanhycqS3CXAfpwF5Pr/KawyRM1VX3zA bVMIRh0atchy5IhQFnGmVxYb5ifpBXd6UbipcuRrEFGWK4nZtAizwE+UbbTNXxnAAiuEuAoHCCXMU vVtrczqQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dYJ7n-0007l5-5J; Thu, 20 Jul 2017 21:36:47 +0000 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dYJ7V-0007Vd-4x for linux-arm-kernel@lists.infradead.org; Thu, 20 Jul 2017 21:36:30 +0000 Received: by mail-pg0-x22d.google.com with SMTP id v190so19940172pgv.2 for ; Thu, 20 Jul 2017 14:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ozeuMJih141JF8EpKW1rideaCXJdNekBBcPrWrtoIOI=; b=IIBvVFypDgIuq4OoNn5tr55b0DGslsboV+5DpDpFCK5/Oe9FYyYZSZK/OZD2Q5giDQ 1JETU0IYm8r2y1bLZNYWF7XcrFJ+Fwla55A0zGiZ3vliZWHYYXKO5ihZRes4mf0/xyqV rnl4RNLrF9jugsw8b9XNt9mz+5I2isHRLnPgA= 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=ozeuMJih141JF8EpKW1rideaCXJdNekBBcPrWrtoIOI=; b=iUa3FC1C9ncGioJ5TDFb07hRu+Ili8hr9SSZDZ67H0cXwvM9/Y9X/TDkKq3xo100ZA fxoYm7Zjp8UtH2HTbPtc6hO3f/4nhUG1/xNJb+HwaERLBMAc6tGQdAsK6FZfFeaY7RgM YJ1jwg5Nk2NsacIklrJd3PZ6wJTTZRZLzFI+PZxOdNJwI8TZIpsA3SgiLZdi1rvqqmfG zqyjHOizwggaiKMYSo1NlPoCEf2GNpBOiQ7sGXb7yqaao72maEQ1ejdcr1Z5Z3R1UmC3 SKoIH+Elvm3Egwl1GO7Ui/7jKfj3U6NLLDxe1w4wNxaO5jKP9qAurnuPQP0j13ma/cFh jlGg== X-Gm-Message-State: AIVw112YAQC5lBNAAGdAAZcGvYPPjeXGVNpQnafzNrjiBBtMjHZ9031+ RKwEYCnT8V30MFMG2WU= X-Received: by 10.84.232.70 with SMTP id f6mr5658700pln.169.1500586568164; Thu, 20 Jul 2017 14:36:08 -0700 (PDT) Received: from softwaredev21.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id l4sm5783077pgr.21.2017.07.20.14.36.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jul 2017 14:36:07 -0700 (PDT) From: Loc Ho To: bp@suse.de, msalter@redhat.com, rafael@kernel.org, tbaicar@codeaurora.org Subject: [PATCH v5 1/1] acpi: apei: Enable APEI multiple GHES source to share an single external IRQ Date: Thu, 20 Jul 2017 14:36:03 -0700 Message-Id: <1500586563-7088-2-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1500586563-7088-1-git-send-email-lho@apm.com> References: <1500586563-7088-1-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170720_143629_214450_DE533978 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-acpi@vger.kernel.org, patches@apm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Loc Ho MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch allows APEI generic error source table with external IRQ to share a single IRQ. Co-authored-by: Tuan Phan Signed-off-by: Loc Ho --- drivers/acpi/apei/ghes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index d661d45..eed09fc 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);