Skip to content

Commit 1d194ab

Browse files
jic23willdeacon
authored andcommitted
perf/imx_ddr: Assign parents for event_source devices
Currently all this device appear 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: Frank Li <Frank.li@nxp.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240412161057.14099-16-Jonathan.Cameron@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 6148865 commit 1d194ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/perf/fsl_imx8_ddr_perf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,7 @@ static int ddr_perf_init(struct ddr_pmu *pmu, void __iomem *base,
651651
*pmu = (struct ddr_pmu) {
652652
.pmu = (struct pmu) {
653653
.module = THIS_MODULE,
654+
.parent = dev,
654655
.capabilities = PERF_PMU_CAP_NO_EXCLUDE,
655656
.task_ctx_nr = perf_invalid_context,
656657
.attr_groups = attr_groups,

0 commit comments

Comments
 (0)