Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp738673imm; Mon, 1 Oct 2018 18:23:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV61vj08+536EA2uVzZpxfhEL0Dc/kusuB4d7H7PSjiBNKDFBnCA2OPGms37nfIxUj9icLKfK X-Received: by 2002:a17:902:7244:: with SMTP id c4-v6mr14337405pll.339.1538443409113; Mon, 01 Oct 2018 18:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538443409; cv=none; d=google.com; s=arc-20160816; b=EhfAxVTbL2cFqQ6tVoYkIUMK0vG3pSrABoTsMu1SmzRhKl2I0mhZYiXsjeyDhMJ9ek i5foprF0ykteDJZNQa5MZqnThMwdkmt/bNe3+iABP1I0pkY78NBkz64MRhFaoSGrCHI0 QYJCuqFLoOppe4LEWccqeZ6Q7ziF5ONfW9LXoqTuNOuCbeTLMm3DBWxGDx3uNfuKsI5B I9wVWMpAtq9gI6lxFB5fHVZQRVLCZRYUXReXPKgseuelnCuoR4c5m5HBYNUVEg6hjAJy WcDJCfVN0iMhbuRsecS007Kaeu5OdSgaILUiDqjbN75CtN1X7/SIahhdlb/HkzBh3nV1 LxGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=BhmQ1RU7SkoorF4O1yVXhhNZkjc8jQEjYybwQYhCQkI=; b=X/bd7g/TiHOYPip8pdPZ6Rwl1TIZO3Vk67UuNZ+XSwaQRk0FrtCxdrQDtAa4ZObswg 4XXqtK/N2kNtYQNuct9UBnVzT4sVF2rnryWNDTl+hET92hzqxEOMwaU1SlNajH6YpC7X UptuXG6PBX64WucXMHr+wY3ZI81clX8TaFA+RjDX9ifCp8M0M+XYsex6f87EI6hQSkav GPgOlbYWS06nE8Pm6WPHcq/Ebqo3lsgMvpg06rcttF0JLukxaEImdtPzGAc9U5aUbqSY TIwM8UBT2bR0k9b190hOG8ge7VRIjsUjfr/eoHlQkBvtPQSinEUq8YevgyP34Y1b3yJl rngA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GjFElW5V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14-v6si13660072pgo.449.2018.10.01.18.23.14; Mon, 01 Oct 2018 18:23:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GjFElW5V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726709AbeJBIDo (ORCPT + 99 others); Tue, 2 Oct 2018 04:03:44 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50418 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbeJBIDo (ORCPT ); Tue, 2 Oct 2018 04:03:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BhmQ1RU7SkoorF4O1yVXhhNZkjc8jQEjYybwQYhCQkI=; b=GjFElW5VTgIy5bUZJyINa57vv TCK3LEH1qCLF5sC7YooWGD1j8PlPfCBut00H2mgB6nNyqRLgGFVD0jMN/Orra5fpmqPqw+HBYsL6/ 7Jhdy2rt+IlZH0SQ6nwpX4ElLkrlolg/6pLAGpcNp1gaQkvdn7OzChkuW4wMWDtUAHOYtuZGP6aTl qBBYZG28SCCGfzARBba33BtDHgDKpIEYiQLcLh+jQj4YronLxi3K2Qwrudh+JBnKaXd6N6JOo1BIy /bCjemPE20yboFpuB/R9vc+lAWXWaoU11YERIul6O/thw5jjOUYT7iIXZZ13itMgMx439WGbtLo7R rWuywuQBQ==; Received: from [191.33.184.123] (helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g79Ow-0007Hc-Mm; Tue, 02 Oct 2018 01:23:02 +0000 Date: Mon, 1 Oct 2018 22:22:57 -0300 From: Mauro Carvalho Chehab To: "Luck, Tony" Cc: Borislav Petkov , Russ Anderson , Greg KH , Justin Ernst , russ.anderson@hpe.com, Mauro Carvalho Chehab , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Aristeu Rozanski Filho Subject: Re: [PATCH] EDAC: Don't add devices under /sys/bus/edac Message-ID: <20181001222257.45e4fd59@coco.lan> In-Reply-To: <20181001224313.GA9487@agluck-desk> References: <20180926130340.6b22918b@coco.lan> <20180926161749.GI5584@zn.tnic> <20180926181035.GA1132@agluck-desk> <20180926182317.patqjso7nzw2oxiz@hpe.com> <20180926230257.GA5666@agluck-desk> <20180927045244.GA30912@zn.tnic> <20180927214400.GA2249@agluck-desk> <20180927220355.GF19687@zn.tnic> <20180927221054.580220e5@coco.lan> <20181001124754.GD7269@zn.tnic> <20181001224313.GA9487@agluck-desk> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 1 Oct 2018 15:43:13 -0700 "Luck, Tony" escreveu: > Nobody(*) uses them. Dropping this will allow us to make the total > number of memory controllers configurable (as we won't have to > worry about duplicated device names under this directory). > > (*) https://marc.info/?l=linux-edac&m=153809709903987&w=2 > > Signed-off-by: Tony Luck > --- > > Boris: Apply this, then your earlier patch to get rid of the > hard coded limit on the number of memory controllers: > https://marc.info/?l=linux-edac&m=153797567628947&w=2 > the combination works on my 4 socket machine. Perhaps HPE > can test on their superdome. > For both this and the referred patch: Acked-by: Mauro Carvalho Chehab > drivers/edac/edac_mc_sysfs.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c > index 20374b8248f0..4c1bee59c2e6 100644 > --- a/drivers/edac/edac_mc_sysfs.c > +++ b/drivers/edac/edac_mc_sysfs.c > @@ -405,7 +405,6 @@ static int edac_create_csrow_object(struct mem_ctl_info *mci, > struct csrow_info *csrow, int index) > { > csrow->dev.type = &csrow_attr_type; > - csrow->dev.bus = mci->bus; > csrow->dev.groups = csrow_dev_groups; > device_initialize(&csrow->dev); > csrow->dev.parent = &mci->dev; > @@ -636,7 +635,6 @@ static int edac_create_dimm_object(struct mem_ctl_info *mci, > dimm->mci = mci; > > dimm->dev.type = &dimm_attr_type; > - dimm->dev.bus = mci->bus; > device_initialize(&dimm->dev); > > dimm->dev.parent = &mci->dev; > @@ -940,7 +938,6 @@ int edac_create_sysfs_mci_device(struct mem_ctl_info *mci, > device_initialize(&mci->dev); > > mci->dev.parent = mci_pdev; > - mci->dev.bus = mci->bus; > mci->dev.groups = groups; > dev_set_name(&mci->dev, "mc%d", mci->mc_idx); > dev_set_drvdata(&mci->dev, mci); Thanks, Mauro