From patchwork Thu Jan 21 00:17:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 8075661 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4421EBEEE5 for ; Thu, 21 Jan 2016 00:20:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C3642054C for ; Thu, 21 Jan 2016 00:20:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59081205E6 for ; Thu, 21 Jan 2016 00:19:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aM2xR-0002j2-Ov; Thu, 21 Jan 2016 00:18:37 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aM2x3-0002Va-5q for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2016 00:18:14 +0000 Received: by mail-pf0-x22a.google.com with SMTP id q63so13407825pfb.1 for ; Wed, 20 Jan 2016 16:17:52 -0800 (PST) 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=a8eaikEn+HLit/y216I4coXJr31xGUMylyNi+XfVrsg=; b=XveKg90CCM4/zo9x3G+s9JZLRWSe+4IZvoTxVgdjqDXPVI6U2Wa8tFiLlUAzixGPSh R6VngtJWABRTgjIvYctSK70GFTtqa6UyEJIJnrG6H56X8161wqQRZzHtdXaZOVp7jDow 35Au7Xz5n7UZRe+MXy7PZC7K9MbSBPZoS3RyI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=a8eaikEn+HLit/y216I4coXJr31xGUMylyNi+XfVrsg=; b=S6qduH1go6ZIgRblHVG5T9+T9VSmEw0P2ocN+u6zB7Z3afh6IOOOhNkN11dmWR//kh TGkgAUjfIxAoi3Tyy+fYPkLk0fwDNUG3WdiQlzK7gBJC0gtQ/8eynd8p9i1qDCNS0hpk yfWoVocYCKNjETh1TkjX4APlxzhYbCvAxWvSACwVgZpMFA752cTOPTaOGJyRu1yuLAwU QixF6rl2OM71RvzxH8VsKFayDlTj/2gJaUwQ9olcSceiN0O+x5cc3aszCkHbPNQLec4Y yNDKFRRuuPMEkarLoDuC6+6DUdpVnZo6bQk+QUiJi3xCpQK8YNqE5AfL8DdxKohTi+lv gv9Q== X-Gm-Message-State: ALoCoQm1z3uAAX4BYLBdV4WGAmrm8YdJzjFELeefiGrapf8f4nB5/DMVsBSBm7lF3lpp7tjGKwsxVgnpB+82JWMVp6ph2rWIXw== X-Received: by 10.98.75.143 with SMTP id d15mr57017047pfj.96.1453335472315; Wed, 20 Jan 2016 16:17:52 -0800 (PST) Received: from localhost.localdomain ([198.137.200.11]) by smtp.gmail.com with ESMTPSA id ry1sm51593092pab.30.2016.01.20.16.17.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jan 2016 16:17:50 -0800 (PST) From: Loc Ho To: bp@alien8.de, dougthompson@xmission.com, mchehab@osg.samsung.com, tomasz.nowicki@linaro.org, fu.wei@linaro.org, rjw@rjwysocki.net, lenb@kernel.org Subject: [PATCH v4 2/2] acpi: apei: Enable APEI multiple GHES source to share an single external IRQ Date: Wed, 20 Jan 2016 17:17:39 -0700 Message-Id: <1453335459-3617-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1453335459-3617-1-git-send-email-lho@apm.com> References: <1453335459-3617-1-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160120_161813_388148_17CDD51F X-CRM114-Status: GOOD ( 11.38 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, patches@apm.com, linux-acpi@vger.kernel.org, Loc Ho , Tuan Phan , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/acpi/apei/ghes.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 3dd9c46..76146c8 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -1011,7 +1011,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);