Message ID | 20221017130140.420986-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 y7csp1438581wrs; Mon, 17 Oct 2022 06:10:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6uYeErAaO90F5dPvvgaMZIKgQHyKnV/BwF5JGihsFAluWflicmH7HPpyDH3CrTjbTi9Vdc X-Received: by 2002:a05:6a00:234d:b0:561:f0c3:cde1 with SMTP id j13-20020a056a00234d00b00561f0c3cde1mr12441455pfj.34.1666012230860; Mon, 17 Oct 2022 06:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666012230; cv=none; d=google.com; s=arc-20160816; b=CDCAHP1W0cO+xsBPyFFAXHPHdqHDae+F/0vjQjvrSMwuRrUUs6FlRH6XU3aF5RUeWc 8oblv+kkusdXBjx/ApQVdkz/1+zmFi0EKR5BvIxsM0AizH1HmNx7rrquHEL9/fycqk6n jgcmwxwzvj/SyRPyPQkWryRT5zA2snSDu+VcwUmJlePyDNb7nSqF+KOJUJIWUwsjRMTu RV5HRQoHQ2ugNluisxG+oxlma0oROr/lVrzZppMjReN92+OxvxDQe2QkhDg66/K/nHuZ yKveEKKWAVcmwOsCsd4L2caCe2FOO58VDppmaHmw2K4SKighBz6dbAX6pClm8I/xLRTV 0cRA== 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=Dpb6/rLpt/zj8DJTswpVoXXjCd7H/874N66Itwpdu57YBT+Kv/LQTExF2XaVw/kfyx Ew7Fo/F0RJ9bcBoAGJMp5H6/lBomDAeSLLIqX9266jpBPoBkQBVHhi+yZD1b/uon0gm0 5SkPPL6FG6k2zP2QHdY9DAocE43qSR/vFd8rqmvlcicUvDdJgAKNkZqKX4nrQ8FeoKyn mspM2vcrENcX/NK0HNk1ej8leC21IjDo7U7s5GDzAAFuhjfllV3Cx4IUmjmDyy3FSfwS GxCxGOC+ONpqlD+qtmzKe1TmvDp6ndqSpqy5wGroaP/uLrFBAgWDV69WblKC3jaEVAaa e+MA== 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 lr17-20020a17090b4b9100b0020d4590814esi12238519pjb.87.2022.10.17.06.10.17; Mon, 17 Oct 2022 06:10:30 -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 S230215AbiJQND1 (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Mon, 17 Oct 2022 09:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbiJQNCx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Oct 2022 09:02:53 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B852F6050B; Mon, 17 Oct 2022 06:02:49 -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 C361C1042; Mon, 17 Oct 2022 06:02:54 -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 D31173F67D; Mon, 17 Oct 2022 06:02:41 -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 v9 7/7] EDAC/igen6: Return consistent errno when another edac driver is enabled Date: Mon, 17 Oct 2022 13:01:40 +0000 Message-Id: <20221017130140.420986-8-justin.he@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221017130140.420986-1-justin.he@arm.com> References: <20221017130140.420986-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?1746940441090174907?= X-GMAIL-MSGID: =?utf-8?q?1746940441090174907?= |
Series |
Make ghes_edac a proper module
|
|
Commit Message
Justin He
Oct. 17, 2022, 1:01 p.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;