Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp28585lqp; Fri, 12 Apr 2024 09:35:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUD9nImBni3UZc+NmxPuDv2CFnJPUcPqiMkBI0lo/CVlCYdaBwfOvdZfZUrsoCf30Qa/0zCZsVuy5oag/sQCvQtDF9yf1FEK6+ly8LfOg== X-Google-Smtp-Source: AGHT+IHKEE9KUyQ3A+FZ4vuFSMDqIAnTS4nmrNzyvrksXlgnUaps0ZN3gXQD277ySmO2lowwndli X-Received: by 2002:a05:6358:1396:b0:183:6427:10b6 with SMTP id n22-20020a056358139600b00183642710b6mr3321519rwi.19.1712939739632; Fri, 12 Apr 2024 09:35:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939739; cv=pass; d=google.com; s=arc-20160816; b=z3cQLFiP7QZkla3cOjA0gCIZ9a8BB2P6EGOrc6fAuo4+Cdt9McGpmXseLTFcFpNX9e 0BK9SmHRwmBYjmEVrP14X+ylAnTmDWlNsowfzj2i9ihxnCUCgfsxeeNnDnFB59LqQT0v W6YfND0nXGF6i6pZTodqxR2L5KZGEX3eOoFL1kqAMjapT0jKt6WxXGydh2L4xoOk3hFr 4M/0Yypi1ZhBISY4T8oEbwvO4XgnvCHqELj6xuu1FMjzdoS3kutSPqHkEGFLhQrVpkBg EtLQCR7U123KsYqpt3Pb/F6D2HoALyfsB/0nXezLfxMuN9t3WCkEC+1QNtiZt3e1aSzh SP6g== 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=RxjZlrap4knHJwiSQr5d2fRy+Pj51s6jv1JWa7ootW4=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=OP1bXlbuTVVG0AQYG2A6FjsmdIVdsxoQ7i08j40qLUny4XJAIpuKdHY3HrNTkX9GLY i1FBrCR06qTCjtOxxlYwTwHT09R8kfJ8J/hCLVv0Hgh9x3aAC0TAGUbYi3zubBWrBo6X WW5t/T+8/ilmXw1Tc65fXd8w5Tzi/4FQZJUc8mouV0IAli3nWiJtK2qr7xNQhLIQ7THM G6U+zKG/1P5r65e+2RwU6GJjDex6W4rgqgbqFlbu8QJy8NqayPf2RcjmKH24atZaFs+1 Yun1IlL1Q4ngGwolPsGvFeCzbRin1w3GrExo4ZDEwTs/2s6Iitda2hp+2ND61uucXcKm kJIw==; 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-143049-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143049-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i62-20020a636d41000000b005d8bb95ce76si3526090pgc.285.2024.04.12.09.35.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:35:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143049-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-143049-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143049-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6EBCCB2421F for ; Fri, 12 Apr 2024 16:20:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12D98148FF8; Fri, 12 Apr 2024 16:18:41 +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 D0E0C149C4D; Fri, 12 Apr 2024 16:18:38 +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=1712938720; cv=none; b=Fpbwr9OyHUoFrg8ymxAgtZ7T41D1KsRQjjljx7l1NiQ31exZxQfPxPSpAQBCd+EkDBFYDHzNNwYT4/WNx3HS0sjA1PnG2omoSYfIJKsph5HanO+1w8PphZrpqeGC0MlolxGc8hi6qC49vqO0WutjjrZpBhjbj9dV4w314hnnslg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938720; c=relaxed/simple; bh=RBAeYJgUj+eoRUw+xj4msP667gh3/Ie0CBNOPzMYs3w=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tBdYMjRThw+LsGQZxFViZOqiAKMue0Jra4Q/K8WZRHTMdaSQgQMxmXfAHeYDsXc1wDgd14tvhB4lFSz8QgCWf9ZZXmsnf82H52rcz5PiG/WVy/gQ1eWMJiPQXRP8j4TLft0MGlLt4mAojkc9dx9H0G5wmYlWsTX8XgNt+6gQ6tI= 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.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGM7Z277Cz6K96J; Sat, 13 Apr 2024 00:13:46 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id BBFA5140C98; Sat, 13 Apr 2024 00:18:36 +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:18:36 +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 15/30] perf/imx_ddr: Assign parents for event_source devices Date: Fri, 12 Apr 2024 17:10:42 +0100 Message-ID: <20240412161057.14099-16-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 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 Signed-off-by: Jonathan Cameron --- drivers/perf/fsl_imx8_ddr_perf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index 4e8fa5a48fcf..1bbdb29743c4 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -651,6 +651,7 @@ static int ddr_perf_init(struct ddr_pmu *pmu, void __iomem *base, *pmu = (struct ddr_pmu) { .pmu = (struct pmu) { .module = THIS_MODULE, + .parent = dev, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_invalid_context, .attr_groups = attr_groups, -- 2.39.2