Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6066270rwl; Tue, 4 Apr 2023 07:25:50 -0700 (PDT) X-Google-Smtp-Source: AKy350YlvOfEixDccsbnNwPYiwfH63s5PY2T1pQl+8hLw+tS/tnvZmkycVNBlS293W3CXawgcVK8 X-Received: by 2002:a17:90b:1801:b0:23d:2e22:17c9 with SMTP id lw1-20020a17090b180100b0023d2e2217c9mr3161981pjb.5.1680618350087; Tue, 04 Apr 2023 07:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680618350; cv=none; d=google.com; s=arc-20160816; b=luJFcYQweIjqXPO9nXvdcjHgspQmUyVk8MwXGQyKYnlgQXlMjpaUuJ3kyqSVlbguSI hzt1tmEkqQdmQKwbXghMLRUGGXfeF6ceDWpudi9F1ONrpKAY6DEvu9uhxkc2OZwNT7oX yMc+tUb3CRjv3r1qyp+0V3lIrCp+Nz1WDQy0w/13FvArcXaqAxUSIzNMdHa9oO/nPumW tyVYL+JZSl6fGTZMmsR9LXvPKDRnOTaM6RMDoOCljbsIfo6y6wl1sCw1grJzEPQijLo8 NmfIoUzXN8zKU2/NxmQMoFHKBzaDt+iJn9B4XqMC+IfefMnoP0wuxIHn6xg8kUK9KIjd bIPQ== 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=rdUxUvSWNELhcoe/fsnM8CA6aK5Yeq2MHB+8gdLWcZU=; b=Sy7svzxs3QBJfn6BNYolb4hbVTZEnc4Y5cURWcnrOUSap/ZOJTYGYtVHtdiSWgbWE/ uRg3mWHdTeWDWFSr8PQA+4IQiFX46CstVSaGAjNRK99H/JoEXewjhcnfECsBPWWgJj4c wBaXi3beNdCNQH3KmCjDX2uAQss0rWyWPHZa95fOGloQ8H8W1lkKAqS18sCN0sSDEg8l wmrPU/ygtygp9aCmOReF903xsQsVWaj2XkpWLPXSmsRMm+XCUIvbewTWN/qJADZTJg90 +KGBKCmybVJLBjJcmHrk8ZwqNAvnYcd+CO/qfWwhZYN+9adKtgk2uwMpRYfksZm4KlN7 cYqQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc10-20020a17090b3b8a00b0023672f9f970si8606068pjb.5.2023.04.04.07.25.27; Tue, 04 Apr 2023 07:25:50 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235742AbjDDOUI (ORCPT + 99 others); Tue, 4 Apr 2023 10:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbjDDOUH (ORCPT ); Tue, 4 Apr 2023 10:20:07 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CAED19AE; Tue, 4 Apr 2023 07:20:05 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTkc5GLKz67dbJ; Tue, 4 Apr 2023 21:53:44 +0800 (CST) Received: from SecurePC-101-06.china.huawei.com (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Apr 2023 14:57:42 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , Dan Williams , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Robert Richter , Atish Patra , Anup Patel , Andy Gross , Bjorn Andersson , Frank Li , Shuai Xue , Vineet Gupta , Shawn Guo , Fenghua Yu , Dave Jiang , Wu Hao , Tom Rix , , Suzuki K Poulose , Liang Kan Subject: [PATCH 30/32] drivers/nvdimm: Assign parent for event_source device Date: Tue, 4 Apr 2023 14:42:23 +0100 Message-ID: <20230404134225.13408-31-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.122.247.231] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Currently the PMU device appears directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parent to be the platform device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Dan Williams Cc: nvdimm@lists.linux.dev Signed-off-by: Jonathan Cameron --- drivers/nvdimm/nd_perf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvdimm/nd_perf.c b/drivers/nvdimm/nd_perf.c index 433bbb68ae64..67de6069edfb 100644 --- a/drivers/nvdimm/nd_perf.c +++ b/drivers/nvdimm/nd_perf.c @@ -292,6 +292,7 @@ int register_nvdimm_pmu(struct nvdimm_pmu *nd_pmu, struct platform_device *pdev) * device data in events functions. */ nd_pmu->dev = &pdev->dev; + nd_pmu->pmu.parent = &pdev->dev; /* Fill attribute groups for the nvdimm pmu device */ nd_pmu->pmu.attr_groups[NVDIMM_PMU_FORMAT_ATTR] = &nvdimm_pmu_format_group; -- 2.37.2