Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp14502lqp; Fri, 12 Apr 2024 09:14:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2EAmOQr5nbcbjSEPNjq6igkqWNzxzrZ38P3HV5XlOZ05zxksyBqwvl+qLODEjbQog0q/C+T8hZWBWg/0KogAscGxmx07rMze8ke0nFQ== X-Google-Smtp-Source: AGHT+IEjzbrjzYSPru+uprO3raMmXhGXqWOD632eK9SWfwpMq9zev0VCPa0haCtp92OpuGLPVmNi X-Received: by 2002:a05:6a20:9499:b0:1a9:88ac:df47 with SMTP id hs25-20020a056a20949900b001a988acdf47mr3120096pzb.36.1712938455283; Fri, 12 Apr 2024 09:14:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938455; cv=pass; d=google.com; s=arc-20160816; b=sTFqOvAR9a0YeHvWQQneeOBKZl9p3+TWdGQzOGz1zS8Uys2g5kNV+yWEkuJo14O9jr kBXn959wUXFkn3aRtswLpvPkD6Vu29lOtRtZh+5SlRZ2z5ETQ3FNdB8eK6BAzE9ZvwIt qGntAU1et0y1Grhtej5sKiOmyhJZlHASomUuKWxaaGXUKoaECCIib8S8L3SGxTwDMPVX ZOTAYOLXDd39PQ5oDfrjgqUlfnPahBNA40mh0pljG/rCobV7TP9fOnICGlI3/J9J6qI0 M2WFuvr1xp4gdyKIAM6X9aTvECwvoKGjHvmfTwWqjIUbctmAXx49dIHwuvmBBPQNH9+j wJlQ== 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=3Y6cr2FTbdhEEauUyTwf6LyBYNGwqSUExHsG8/TxbhM=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=HAEu95cL+9/IY0bwYnpS/hk8Ov33Epjbwxf4CAxrddIq+xeKurlo69gBg3uzv1nLbW G0UmtbHTdYMAsT/f+NqBAPC2iHtl1RRbgASY3l9tIzQEK5BTR15bpW1ZnJY12Z8ESGO7 lS2FfZGacZIA+LJb8qu2IGiCgo69HLx/I9IfLG0s+h6JNvj+lCdaHjKNAHfMq70C7ld/ hdnfHm/CpJy0TPIh5cZs7QigqUyrTPAMKm8pI+vKXAANhMv+NyQg77F8ix/kQsTyGG3n QeGbJ2HQ8ZbW9OHzP+vkKwK8YKPGv4+Fgeftta6FHev7AOWeGAqOc/0a/gI92i0sL8Ov TkHQ==; 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-143030-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143030-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 mq17-20020a17090b381100b002a266a0f18asi3868431pjb.58.2024.04.12.09.14.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143030-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-143030-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143030-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 E2FD4281EF4 for ; Fri, 12 Apr 2024 16:14:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B5AB148FF1; Fri, 12 Apr 2024 16:14:04 +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 96A555491F; Fri, 12 Apr 2024 16:14:02 +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=1712938444; cv=none; b=bdEHJ/nK73NU08M90UOvKeVSlsW9VyS9yKVbu9C74TJ3he8+49uX1kydCfvtUz9xQmW4VpisC8EXhEMacN1Z35jSU9UNwgIx2xSq3ngbIDPGs6Hxg6AF8P5gaLOLCX4n5MD3OxRYyTaxrFQt13IA91ha6q8RoW/jAE/4iqPCONQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938444; c=relaxed/simple; bh=E1FkTll9y9ACmFO9o1vmBlbFQqYqfpIrDsoLnG1hZrI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=np0GijZAs3I4XPeOSSZmdkqxVdSsZiw5gI8cja4Kcey+pyglShxggMGROAddWrKMtKsFz/l/nbuzlp/rjLf1Y4zysuFCy/mSrMLiwDEU471+6NEUR9s3KIG4eAvoZpOfiCmuwPEYArlINYt6ANuLuylUWRjoppmdCFvTPDbA19c= 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 4VGM2F4dmTz6K90J; Sat, 13 Apr 2024 00:09:09 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 166AB1400CF; Sat, 13 Apr 2024 00:14:00 +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:13:59 +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 06/30] perf/amlogic: Assign parents for event_source devices Date: Fri, 12 Apr 2024 17:10:33 +0100 Message-ID: <20240412161057.14099-7-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 all these devices appear directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parents to be the platform device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Reviewed-by: Jiucheng Xu --- drivers/perf/amlogic/meson_ddr_pmu_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/amlogic/meson_ddr_pmu_core.c b/drivers/perf/amlogic/meson_ddr_pmu_core.c index bbc7285fd934..07446d784a1a 100644 --- a/drivers/perf/amlogic/meson_ddr_pmu_core.c +++ b/drivers/perf/amlogic/meson_ddr_pmu_core.c @@ -492,6 +492,7 @@ int meson_ddr_pmu_create(struct platform_device *pdev) *pmu = (struct ddr_pmu) { .pmu = { .module = THIS_MODULE, + .parent = &pdev->dev, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_invalid_context, .attr_groups = attr_groups, -- 2.39.2