Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp619319imm; Mon, 1 Oct 2018 15:44:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV63b3Tamj52ZkBxIbJFfBLwKHpR5s+mdVNV2PWj95YEXx6mq8qWO/ASAMq+yw7A0B+GWP0aj X-Received: by 2002:a63:be4a:: with SMTP id g10-v6mr12067741pgo.378.1538433897371; Mon, 01 Oct 2018 15:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538433897; cv=none; d=google.com; s=arc-20160816; b=bGwizSujLG5j+WgU1xScUwvfI27oehK/bH6B8W8bEsRACEeODoLzggTUimefR5/on8 Elfuu4WlkDkjcgenW0tnu0gGYhbcv7/FZK4zOnJ3EjVRvbPxgyrEcXRuUKGheBcSIlT0 XXvS0/aRMJzsv5XelJelDQa5/n0jXu5tpsTlQ0hseFjrPT/ttD6M2PzqVlAF/Fw2qi8N LQrxlmnwzJkPTaIxuVNtzmb8KuemwoQPmgghGwANDgiH7iOqFZKxgai+Iy5E1HTFeYa+ ZwMkIZuwQijVAVZSnC5MlVvQr2fOddFZ+4ftX11MbBl/YYuA9gFJaq+u+LnKnbmJMUGB b7wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5MrXbPvSdX9MLMAhn5ef8PRtfMzUdiCc1N6qzodZoSY=; b=VxCRvEfF/sj15g665Je5RWjnDfgOwU9oNx7xEARFRqBQOdHVeKg0XFchPJCBjQZ5ev lpB4wU0iRqgFmh1KUhOTyxhDhBGbdun9aW9Ys9XlhKYc0xdJw70BCgnMs+qTokNcKamJ Tqf+69a0buiMIqtNfsvIQwpN0X1oQe8KExU9Rx9ruijihvR54Pz76mjOiQxjf+xH3qZ9 JpcFLo+kArkSnL6A+GEjC84ZoiNYDNx3EjBAZNNQw4tSTTHwJXA7oikKDUyqU7CyxH8K F+X+FYZnC8/RPBF9ip848ARBNI9zgDl4kOJVp/wC+gTuFRIKJH+XVzUBQg658BZ2Snq8 5j1g== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 93-v6si14609436plf.113.2018.10.01.15.44.42; Mon, 01 Oct 2018 15:44:57 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726565AbeJBFXR (ORCPT + 99 others); Tue, 2 Oct 2018 01:23:17 -0400 Received: from mga14.intel.com ([192.55.52.115]:2168 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbeJBFXR (ORCPT ); Tue, 2 Oct 2018 01:23:17 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2018 15:43:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,329,1534834800"; d="scan'208";a="267577834" Received: from agluck-desk.sc.intel.com (HELO agluck-desk) ([10.3.52.160]) by fmsmga005.fm.intel.com with ESMTP; 01 Oct 2018 15:43:13 -0700 Date: Mon, 1 Oct 2018 15:43:13 -0700 From: "Luck, Tony" To: Borislav Petkov Cc: Mauro Carvalho Chehab , 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: [PATCH] EDAC: Don't add devices under /sys/bus/edac Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181001124754.GD7269@zn.tnic> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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); -- 2.17.1