[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <de25219b-2f7e-1e7b-ebad-70287ee4c28f@amlogic.com>
Date: Mon, 10 Apr 2023 10:00:23 +0800
From: Jiucheng Xu <Jiucheng.Xu@...ogic.com>
To: Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Mark Rutland <mark.rutland@....com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Will Deacon <will@...nel.org>, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, gregkh@...uxfoundation.org
Cc: linuxarm@...wei.com, Dan Williams <dan.j.williams@...el.com>,
Shaokun Zhang <zhangshaokun@...ilicon.com>,
Yicong Yang <yangyicong@...ilicon.com>,
Khuong Dinh <khuong@...amperecomputing.com>,
Robert Richter <rric@...nel.org>,
Atish Patra <atishp@...shpatra.org>,
Anup Patel <anup@...infault.org>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Frank Li <Frank.li@....com>,
Shuai Xue <xueshuai@...ux.alibaba.com>,
Vineet Gupta <vgupta@...nel.org>,
Shawn Guo <shawnguo@...nel.org>,
Fenghua Yu <fenghua.yu@...el.com>,
Dave Jiang <dave.jiang@...el.com>, Wu Hao <hao.wu@...el.com>,
Tom Rix <trix@...hat.com>, linux-fpga@...r.kernel.org,
Suzuki K Poulose <suzuki.poulose@....com>,
Liang Kan <kan.liang@...ux.intel.com>
Subject: Re: [PATCH 07/32] perf/amlogic: Assign parents for event_source
devices
On 2023/4/4 21:42, Jonathan Cameron wrote:
> [ EXTERNAL EMAIL ]
>
> 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/
> Cc: Jiucheng Xu <jiucheng.xu@...ogic.com>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@...wei.com>
> ---
> 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 b84346dbac2c..e0d3e87457e0 100644
> --- a/drivers/perf/amlogic/meson_ddr_pmu_core.c
> +++ b/drivers/perf/amlogic/meson_ddr_pmu_core.c
> @@ -490,6 +490,7 @@ int meson_ddr_pmu_create(struct platform_device *pdev)
> *pmu = (struct ddr_pmu) {
> .pmu = {
> .module = THIS_MODULE,
> + .parent = &pdev->dev,
Reviewed-by: Jiucheng Xu <jiucheng.xu@...ogic.com
> .capabilities = PERF_PMU_CAP_NO_EXCLUDE,
> .task_ctx_nr = perf_invalid_context,
> .attr_groups = attr_groups,
Powered by blists - more mailing lists