Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2532882rwa; Mon, 22 Aug 2022 09:09:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WhoZGdPhTwObZmXlvDt3W2c6UeyhdYZwZusJuFGf//+TxTFSnRczkDi4eyy1gvEixIYyF X-Received: by 2002:a17:90b:2712:b0:1fa:fe17:16db with SMTP id px18-20020a17090b271200b001fafe1716dbmr14187464pjb.165.1661184549578; Mon, 22 Aug 2022 09:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661184549; cv=none; d=google.com; s=arc-20160816; b=JuSJXXOwEeBllipH8Cr6yxPJtM780Ul1ueqsDAHWyLMwhS1O5SGm+f52T72zcpGEV1 pLBwh3+Nab6BkTmi43AbFSfxdMEKNTS1TN0lN0vVWa0S4MhWK8/h5oeV2JLQY8zLK+vd KUbBfCqqmjrLgeuw7u2bLFDt5qAxYhRbSdpluwL9sIv2TKXSMtxfNWN17upQGzpuyDhv l/iI9Jnbekn2OJaCd6PbVYEh4BmWSIRWqTuqD3IKMkPEtxEcuZxDnK+ysZ9G188QRVlt AzR2FXdTPY0geGaQYFxpqWDkZPphHuDt6BN13jnLIltNnvvPVP/VPFMwGyM8KV60kLtV uuSQ== 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=AQ3YlrBA4HsKm6GuCminUSr34m3yBQkadsG9dh+llUU=; b=WSizs+gVxqfgkLmhkvIEjjYbcetlunCC9bc62UhRMr6sulgoZvd4qNlodCpzoTeMhb IEQIi5SkLxnv2xCfbmR6B2Da8bXXZaT2Q64EtFcLGMmIlWku/l8WfA09bBuagIthn9B2 BBjskIZSKdajS69Lmca3e1wapAF6ksHMA67sLCO7rmEj/YcKkuxffm3ZrgoPFOBmRMZ7 9JWk8BcJQt0CqmuSI41XsdTdn8WuggVnOJw9ZGqaXC7L8KcfO9RbqwForJSCTGH8uyPe yGmPcxiB10nu9AXcFDGCNrAObdSFYGzkhPbuPkKgXSZSa2wzXBFqlXzW2QeFgOjtbmIF 5hPA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a170902ea0400b00171554b0e73si14448918plg.361.2022.08.22.09.08.57; Mon, 22 Aug 2022 09:09:09 -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 S236821AbiHVPns (ORCPT + 99 others); Mon, 22 Aug 2022 11:43:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236823AbiHVPmd (ORCPT ); Mon, 22 Aug 2022 11:42:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9F7DC26578; Mon, 22 Aug 2022 08:42:21 -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 9231EED1; Mon, 22 Aug 2022 08:42:24 -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 D2A283F70D; Mon, 22 Aug 2022 08:42:12 -0700 (PDT) From: Jia He To: Len Brown , James Morse , Tony Luck , Borislav Petkov , Mauro Carvalho Chehab , Robert Richter , Robert Moore , Qiuxu Zhuo , Yazen Ghannam , Jonathan Corbet , Jan Luebbe , Khuong Dinh , Kani Toshi Cc: Ard Biesheuvel , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, devel@acpica.org, "Rafael J . Wysocki" , Shuai Xue , Jarkko Sakkinen , linux-efi@vger.kernel.org, nd@arm.com, "Paul E. McKenney" , Andrew Morton , Neeraj Upadhyay , Randy Dunlap , Damien Le Moal , Muchun Song , linux-doc@vger.kernel.org, Jia He Subject: [RESEND PATCH v3 8/9] EDAC/igen6: Keep returned errno consistent when edac mc has been enabled Date: Mon, 22 Aug 2022 15:40:47 +0000 Message-Id: <20220822154048.188253-9-justin.he@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220822154048.188253-1-justin.he@arm.com> References: <20220822154048.188253-1-justin.he@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 4ac6d0c533ec..4646cb72b9f8 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; -- 2.25.1