Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp29970lqp; Fri, 12 Apr 2024 09:38:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhUcx2f/x3FGEd/j6tnv5t+d2N8Wo+Q4+m1hzAACyvjfOUVQWZr3nb5e7gGaIfTPU//0agOs5NE9wgakcgAiI+0u75yl6AGR7Zp6c2fg== X-Google-Smtp-Source: AGHT+IEkbFfxJ3wOwO76Qj8JD/Z1Ox1FQbRURXrkuqFz2zXrbiiyQKTzhNxdO6LsMTzvNyWLKWVj X-Received: by 2002:a05:6a20:4326:b0:1a3:a984:4b8b with SMTP id h38-20020a056a20432600b001a3a9844b8bmr4207893pzk.50.1712939881163; Fri, 12 Apr 2024 09:38:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939881; cv=pass; d=google.com; s=arc-20160816; b=HBF84xYASO0q5156VEsJ7yLtpESZJQuZ6MjojsLkwf8XmAouTxWQTjG+Q+ePToeF6F oFyE73gkT+sN0STa3k6JHxDqCBMlMNZj7KHoQMW8/evZKSK6Yzzc8+/qCWo4jTolyeJu DNVTGLjiXr7KcyD8mymALPtjdrUHQVls6L5fUczjXLy55ixYa94y+KWjZbTjyxXkn1E1 EITrm21hYlU1A8liLx4PpEImLo+rmjmEZqF5blFlAa3VWHRIZbqhC4D0Idf93y9MHH+l XdXX8l9VkxR8MOU0hzT8GL9aUC0VQsbAO3A6+3afRQixcrv2hW8nu6rvmcodCPAL6zkh UaYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=cnQ8xNVWKCgx2Xqf5oQ2lhxUFVFEP+7/bUQWQx4yk+g=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=BXmK7PRFPannVlCEvBNb7fMiyZ462h1NZ2BHom6BWP8uEwUxD9T3irfopObKxeDEBj 6bDACrgZJ3iQVXY/WieCb4lDvt3nc1iFcsM+RVhiYBx/ART7mXr4q9JR2rKKxzt7xh56 4T2brPT4orVnK7iIsihwl5aOjcmjvn1oPku9Zd974d7reDGM/qGJVHUMUg3c3ICeNBvt jsOSvAaK+fKuloVMwaQsI3VWi1G7GVN1qMRJoIXNxrMxVVTQ7tYbRvQMCpEyWaDZ560v ryKc3ep+aa5/v7vW/t5G9ok2qGyKiraoHuRK+S91pElJpDl+62JnamFzFEVe3wCFIOfu cHgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143078-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q63-20020a634342000000b005d8b2b582dfsi3480787pga.837.2024.04.12.09.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:38:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143078-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143078-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 407C8285662 for ; Fri, 12 Apr 2024 16:27:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D66314D29B; Fri, 12 Apr 2024 16:25:20 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F48A14A4CF; Fri, 12 Apr 2024 16:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939119; cv=none; b=Tr9Q/Kg+n+qFurKbfrF8t5QdLinrEbYzo72jb6TgbcoOcPmYvQTm+hAN7o5x33kwLiRyu/abrJmypt8ZhrZH3kxHDDkYDStPzQG4F1S8ig6/IWar7DNcrFPiL1p2GQrkhTf51U6SqF1zxkmlM3frYcgqhMHQ4qOUHeGRXRz6Hqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939119; c=relaxed/simple; bh=7OxTykh2lr+YtDDqUu7Y+fdYQNRRsjq1U29leyJGPSo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XZR0Atgliq7rP9hAHaztnr2RJ4VmlP/ivZp/C85fcC5qFNgRJWXIbTW0W5k+uqpY9IncL4I4rrdBEyml241BDc9botWXd3EqT+pGrNV8lH/7hbCqqM2pmG/zpONTHUYnBvPJpANm9w8mMDwVfwhi59Dm55krtvLiz3oC2ONawUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGMLq454lz6K5v2; Sat, 13 Apr 2024 00:23:31 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 17D3A1400CF; Sat, 13 Apr 2024 00:25:16 +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_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 17:25:15 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , 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 v2 28/30] drivers/nvdimm: Assign parent for event_source device Date: Fri, 12 Apr 2024 17:10:55 +0100 Message-ID: <20240412161057.14099-29-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) 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/ Reviewed-by: Dan Williams 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 2b6dc80d8fb5..dfc2028b9add 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.39.2