Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp21009lqp; Fri, 12 Apr 2024 09:23:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWu5AvntW89i0QqsiDqyB90cjf1+5zXtHPvmmNZjOSzyIxsAZ8XGv+kutfYdxRlehhrGpgm3+QYDkHvasc1goE658E96umlU3AyPFXKzg== X-Google-Smtp-Source: AGHT+IF2uA4G+Cz7q+aqr9lAswQTBZUkXzfKlgUuuNlNcW+Lfx9TyeHNzv3niGHGhDhiCBa/K35e X-Received: by 2002:a50:d557:0:b0:56e:2a6a:8d3a with SMTP id f23-20020a50d557000000b0056e2a6a8d3amr2811261edj.15.1712939032362; Fri, 12 Apr 2024 09:23:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939032; cv=pass; d=google.com; s=arc-20160816; b=amva6xC5HCMIijrXIi3ywVRes6IiJ8DgOTaGSDBWYsWloSCJMfYfMEuf3Gj9+EfVPd YB15uqV1fGKyHY7+AwTQdcBgm4X9uZl7grBBRP5qRtNwerXn3lY5hlgK2PS8/5J3F63M 1wcIvzRnDSxVI+9MGeJONPu+91MVcbeoAdEvjqVHN1Y1i2cLUIicFx97CDNx9ogMm4Y1 DgRCzJTQuauJXU3VLvivGabbxnjUrmLQE4BfXquQOJFckFgFniDsK3GeJjKC57YG1pCD ZNux2Hnv3bs4VQ0RNPbCW70cnwDCb5GXhcj1Wvvjgv3/15jKAhtZ3bNpOoDPBvD0wTDU CaXQ== 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=AyPb+31IcRDrazhhipUwOzxzwWGaFJdPbuNuGeaNB0s=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=vnpe7GDLbo5cJNmu2MmAMN2QMEF1VeEUq9ywi4GmgqmAJOTD19EQAMuBqr7CIyXMUl MVIOsSJuWo1YtatTRaeJdi1xObg20mjr0NfLXTMF8ny/INYRYytnp3czcHWg9xonqYty aEp3kUElPYCUGiJRpq/y52xOhmL5kX4kf5YdneLkOqJcHQmakD2/e3byYMY49RQyyyXZ ItO7I5M+yl3LL8y3i+a5qUS7zhnvU8+JOO5YyFdR9rssLMtATaMvG0vXVFAkw7Iwwd4n OuPhTmeySzdzEmDrpiQVNAn8LlRrNQ4G8R61NSlz4oMKCkpab9sp7Gev5JX6EptcMFhd /puA==; 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-143063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b9-20020a056402350900b0056b9ef8f01dsi1879509edd.45.2024.04.12.09.23.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:23:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-143063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143063-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1BDDB1F227B0 for ; Fri, 12 Apr 2024 16:23:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3397149E06; Fri, 12 Apr 2024 16:21:14 +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 D534C446BD; Fri, 12 Apr 2024 16:21:12 +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=1712938874; cv=none; b=mmsZT82RxCOOGgyuqXhJwStps6j4Xl7Ro92iXGcxTvbZ8Qa+hd1yU5fLO+B6M9WlJl5uOa5ihXSWiDKfIHg30mC8W/H20mggKnZdoAO7ZcWS15WK9cFIOGTTlRpKYHmnwrDVCvQmMMw+MsThKolLCTJvmmhROzexXWrGVgWV3NE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938874; c=relaxed/simple; bh=IigfVy1IYq5rcANH6+TO5CGSD+vRuzAC24jufyja+rA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bsAovmLObM8iZf0ZE0UXKmuFXPlbHL3dV0HMEsu/W6I7DufKvLM6cIDlpzpaW4yKql9Bm4AkDnkGki6juXS5xQa5tJ0gC87bFGJV2E5DvR7XZJtTPxuQq20MFYsTLBPZnDvcMfNBDftRKa/hi5dHRghE5M85uqD8iQdUCGs0oB4= 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 4VGMG441shz67Lmq; Sat, 13 Apr 2024 00:19:24 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 726C3140119; Sat, 13 Apr 2024 00:21:10 +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:21:09 +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 20/30] perf/arm-dmc620: Assign parents for event_source device Date: Fri, 12 Apr 2024 17:10:47 +0100 Message-ID: <20240412161057.14099-21-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/ Signed-off-by: Jonathan Cameron --- drivers/perf/arm_dmc620_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_dmc620_pmu.c b/drivers/perf/arm_dmc620_pmu.c index 8a81be2dd5ec..2ec96e204c40 100644 --- a/drivers/perf/arm_dmc620_pmu.c +++ b/drivers/perf/arm_dmc620_pmu.c @@ -673,6 +673,7 @@ static int dmc620_pmu_device_probe(struct platform_device *pdev) dmc620_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &pdev->dev, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_invalid_context, .event_init = dmc620_pmu_event_init, -- 2.39.2