Message ID | 20221018082214.569504-8-justin.he@arm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1843640wrs; Tue, 18 Oct 2022 01:42:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7PaYpjV1IsecGYpnm1032qOS3kU+P8XvyeQqoOm98h6Hq8P9QU7imGSfLEUZwSL7jAF73P X-Received: by 2002:a63:4e16:0:b0:43f:3554:ff9c with SMTP id c22-20020a634e16000000b0043f3554ff9cmr1796493pgb.578.1666082567147; Tue, 18 Oct 2022 01:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666082567; cv=none; d=google.com; s=arc-20160816; b=PbGwdQxQK6bDb+APySNKoDtn3Q4/cKEL4+5rxsTbrKOVJ52wE1KNVU8mToZy08Xoh1 c5EUaIIIZq+SGaC0bH5Ajr7IVFMfoUqsD1VKGeHyOWLdQeDT40AQL8KZ/a7W8IikG9BE vMM7cf44lX8uG4cVVRt1u1AgOjQGU9ePdmfbPMZDQBqHNSupL8UEZB+VYJoFXTrnVyhY QyUXqgL3I07ukb94BiewuzJNshkWQmcZYoDgd+JaiqzzTDiC/kE6QJKdmaCpWozFWuF/ G3BRLi1sq2NzuiUHovH49lAbT51Dn/ZdhLfCZ75/R/3LpTCCdsZ7jv4APTM6uwe8ZLEg fqlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Vw1g3sddNnvBcivcb4H6I9inS/5uKnQ7+bfEhV6Tpv8=; b=wVs5HT37pO9oD2TzPr1pwHEjRzR7Zr6QdW+Y2dQPBF+ZALnM+Re3uywIesuyM7Udjz SeHjE4IehOFow/PfR4SnOlwydf/Fdkd6eKS1mj39/AnEqI/3HTmyoJXQYGiOawUZ9swp FV46VUxsHqYVdEEWq7v5uhTQbBFH3iBIDnUqtwHrLMWR6eayMthIMXoJNVJIlwvdxGUl OT8qpkSqMOlZoO4MyPhBmAGuu/giYnb/Rp2UWCmmA+TD6wDXXgQDN1vum+r9ccrYCSxv CItB8MWzEP3E+n3d33rHrEZPPuMDLhM58n2VJjUoRKLf8okWshaYn45Tut3xjJetf/DX h/XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a634301000000b004607d0f5a34si14032135pga.504.2022.10.18.01.42.35; Tue, 18 Oct 2022 01:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbiJRI3O (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Tue, 18 Oct 2022 04:29:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbiJRI2g (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Oct 2022 04:28:36 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 308A792F6B; Tue, 18 Oct 2022 01:28:07 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A95ED2050; Tue, 18 Oct 2022 01:28:08 -0700 (PDT) Received: from entos-ampere-02.shanghai.arm.com (entos-ampere-02.shanghai.arm.com [10.169.212.212]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B46AB3F7D8; Tue, 18 Oct 2022 01:27:55 -0700 (PDT) From: Jia He <justin.he@arm.com> To: Ard Biesheuvel <ardb@kernel.org>, Len Brown <lenb@kernel.org>, Tony Luck <tony.luck@intel.com>, Borislav Petkov <bp@alien8.de>, Mauro Carvalho Chehab <mchehab@kernel.org>, Robert Richter <rric@kernel.org>, Robert Moore <robert.moore@intel.com>, Qiuxu Zhuo <qiuxu.zhuo@intel.com>, Yazen Ghannam <yazen.ghannam@amd.com>, Jan Luebbe <jlu@pengutronix.de>, Khuong Dinh <khuong@os.amperecomputing.com>, Kani Toshi <toshi.kani@hpe.com> Cc: James Morse <james.morse@arm.com>, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, devel@acpica.org, "Rafael J . Wysocki" <rafael@kernel.org>, Shuai Xue <xueshuai@linux.alibaba.com>, Jarkko Sakkinen <jarkko@kernel.org>, linux-efi@vger.kernel.org, nd@arm.com, Peter Zijlstra <peterz@infradead.org>, Jia He <justin.he@arm.com> Subject: [PATCH v10 7/7] EDAC/igen6: Return consistent errno when another edac driver is enabled Date: Tue, 18 Oct 2022 08:22:14 +0000 Message-Id: <20221018082214.569504-8-justin.he@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221018082214.569504-1-justin.he@arm.com> References: <20221018082214.569504-1-justin.he@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747014193476649462?= X-GMAIL-MSGID: =?utf-8?q?1747014193476649462?= |
Series |
Make ghes_edac a proper module
|
|
Commit Message
Justin He
Oct. 18, 2022, 8:22 a.m. UTC
Only a single edac driver can be enabled for EDAC MC. The igen6_init()
should be returned with EBUSY instead of ENODEV, which is consistent with
other edac drivers.
Signed-off-by: Jia He <justin.he@arm.com>
---
drivers/edac/igen6_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/edac/igen6_edac.c b/drivers/edac/igen6_edac.c index d33c666221f9..544dd19072ea 100644 --- a/drivers/edac/igen6_edac.c +++ b/drivers/edac/igen6_edac.c @@ -1276,7 +1276,7 @@ static int __init igen6_init(void) owner = edac_get_owner(); if (owner && strncmp(owner, EDAC_MOD_STR, sizeof(EDAC_MOD_STR))) - return -ENODEV; + return -EBUSY; edac_op_state = EDAC_OPSTATE_NMI;