Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp411099pxu; Thu, 3 Dec 2020 03:30:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSh7SXKQZlQTGdgRfkXQcr3iZgqIOHVTkYL2MXt4k9O9w3XvsGeArEcCIQpd5PYs3nyGBv X-Received: by 2002:a17:906:4756:: with SMTP id j22mr2145886ejs.353.1606995051999; Thu, 03 Dec 2020 03:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606995051; cv=none; d=google.com; s=arc-20160816; b=dOcOAsqOhvxi1PYld/B6pHD1nmHtESfHR9hBbi0s/KTWQKbZPfkCQGcAOa14A+kuDf MjZQ1xhzbW+c5PpUKHtgvrfV6PXsSISQp+FEtpwLesqlbNBSaraDKlcOGQSDmX/j9Fz2 bE1wWuatHX+AElbYcTJBHsl7VI+TlcVtXv6IW6n1qzQAk2NRwz1v8d0TJn2xtGmjihd7 Xe+n7T43dodrmbcX5z/y21rgh4P5OqhgyxyvjuGnU7m1stZWRsMXd7FPLel5Fw/MiuRx IT+IHWLsaPK8ev8UkS0YTtoy4xPnEZqKqAiWvoIzDCmTvvYuZRJsRkHuITO+fcJQONuI l3ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=10cDx4u3TuI/X4dXfdodG1RMy3spziFxyVDc8COPS/8=; b=Wg/xFfhGV/hl6FTTyQ4Bxll0CFizlh1wyDYgssOXEgwaUPkSiQPp9yYn+s+ApzW31p /IJ3NdCRQAwlLUf/KJz7J4ZGQcrJ+fE/O7sT3zIWe6lVn8Y1xuwhu8FjQIsqQHyKJyL4 BVl3A2b0wr/Q1gbg9Z81nmQf6xTz6PKIrNwj6Tf29de0reLxMY+F+CU5K3jR/4rgoLsm f1NjhYwsWrhU+p4c5a2JOsIcpF9iqcBJpKWzpr4knd6pYpe+xN52dV9qeMnuZFMhBjyw //BzGjcmOvbelIF83P14PG3R2DfpHBCY2ZhDY8D+ffuQ+9VFsvQAG2TZaEgIZ9vHPS38 DOfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=fZP6igB0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si761601edf.2.2020.12.03.03.30.27; Thu, 03 Dec 2020 03:30:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=fZP6igB0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729162AbgLCL2P (ORCPT + 99 others); Thu, 3 Dec 2020 06:28:15 -0500 Received: from ozlabs.org ([203.11.71.1]:48791 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgLCL2P (ORCPT ); Thu, 3 Dec 2020 06:28:15 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Cmtq71dWPz9sW0; Thu, 3 Dec 2020 22:27:29 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1606994852; bh=DhZJx6VS2S3i6rp5eGQb6lMVR2DlQIxOHgVG1xjGFrE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fZP6igB0dffXJpVPcdAMjoblQ8MgiPxVagbU9j32aVvdtENZ340u7asmb/zevIMam 0Zljjs9YIrqkIlnKZNVdDT3NCKBiIziUjE/G02oMM1J4m1sbKNebe4IpqGKedl8RAl wU3n3OS6J1yqIJPH3Bqdx9iUtYQbs6Os7HVLNgJnO3GdxCQq3KYZC6ZG8wehxxixcr JXHk6z0kY89GyKR60cUw2IYC7ReC5nPHHRs4ESewl/BBx98TlPWJvt21tXRj3BqsPy THBPRrHyz/KN9pSs65pYUw6EGble1woG2YzV7nYVM6C9R1AvLrCykcMzvNV+MlRVnU V7fkwXYOLHmfg== From: Michael Ellerman To: Borislav Petkov , Benjamin Herrenschmidt , Paul Mackerras Cc: Wang ShaoBo , mchehab@kernel.org, james.morse@arm.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, huawei.libin@huawei.com, cj.chengjian@huawei.com, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] EDAC, mv64x60: Fix error return code in mv64x60_pci_err_probe() In-Reply-To: <20201202112515.GC2951@zn.tnic> References: <20201124063009.1529-1-bobo.shaobowang@huawei.com> <20201202112515.GC2951@zn.tnic> Date: Thu, 03 Dec 2020 22:27:25 +1100 Message-ID: <87pn3ruo2q.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Borislav Petkov writes: > On Tue, Nov 24, 2020 at 02:30:09PM +0800, Wang ShaoBo wrote: >> Fix to return -ENODEV error code when edac_pci_add_device() failed instaed >> of 0 in mv64x60_pci_err_probe(), as done elsewhere in this function. >> >> Fixes: 4f4aeeabc061 ("drivers-edac: add marvell mv64x60 driver") >> Signed-off-by: Wang ShaoBo >> --- >> drivers/edac/mv64x60_edac.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/edac/mv64x60_edac.c b/drivers/edac/mv64x60_edac.c >> index 3c68bb525d5d..456b9ca1fe8d 100644 >> --- a/drivers/edac/mv64x60_edac.c >> +++ b/drivers/edac/mv64x60_edac.c >> @@ -168,6 +168,7 @@ static int mv64x60_pci_err_probe(struct platform_device *pdev) >> >> if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { >> edac_dbg(3, "failed edac_pci_add_device()\n"); >> + res = -ENODEV; >> goto err; >> } > > That driver depends on MV64X60 and I don't see anything in the tree > enabling it and I can't select it AFAICT: > > config MV64X60 > bool > select PPC_INDIRECT_PCI > select CHECK_CACHE_COHERENCY It was selected by PPC_C2K, but that was dropped in: 92c8c16f3457 ("powerpc/embedded6xx: Remove C2K board support") > PPC folks, what do we do here? > > If not used anymore, I'd love to have one less EDAC driver. It's dead code, so drop it. I can send a patch if no one else wants to. cheers