Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp21991lqp; Fri, 12 Apr 2024 09:25:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUS/rlIcDHsji5whDlmBFEolEckMcXAMUBUgOlX53nvKparpelCHovtGAbTf12gj7K+NhSM+CVigk8NoJTuwznSpzmedknGw7DaP6wJQg== X-Google-Smtp-Source: AGHT+IFZLkeSNTA6Mxrcb8PkRcJid/B/u3WR4v/jN8o7PQPqQ0cdZIbSNMTijWVSfuXLc4o3594t X-Received: by 2002:a17:907:970f:b0:a52:3451:8a18 with SMTP id jg15-20020a170907970f00b00a5234518a18mr2435875ejc.29.1712939127201; Fri, 12 Apr 2024 09:25:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939127; cv=pass; d=google.com; s=arc-20160816; b=W3vSCC4DZCIRvYGokk53sXg9Np27p7sSFdkcS1nj0vsllgvFw2T4Nh315R78gdNBGD fVEWXi7qags5bnkKfEiLg2pfcHORoI4rOscANXwleyGNJ5OXQ/7COPqbWwbC9fltP4bd vcsbCu3VNHHJcMrD+rXH0MHXuuoai5aNhhgIBMR2q2gPwu2DjvjnQgxYLdJSInsgUZwk uTEo690B/lcqkb42lV9FhVizMcb9aRuUaryuhFPp2osqUcIZ0kbYS9AvdBkAZHuEdYB8 NqTQH63yWC2d3uGmNDfpB6tQ5ueB2lvd++6AY+NcWRmHxdFWsa4bEaq/N4zJ+QB2Nbna Eu0A== 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=jSEJWpLlGD85FUkQZkkWRH0Wz5DXMIr66Ie5azG8hh0=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=w50vmp6mGURHIeAy3ljin/TWjquQ3GMLDIZgz1sh2NTrY9dRN1nQIreZ/fUl0Wg37J lxEBU8vKcjiMI/ngex/JDgVOm3tee7/QjlBOTuntMe5FHvIHsMFBRDaZv6+Fib8SEA5y a4rB7C7ydTcEXZaVRd1G06c98mvCqyEi2Di/Kb9Gr+NiSySi+1l7X6IbdVZbKTwlSLaY DBkDswvyzRJAcayN82lat+HIH6Y1+VsDBL4spLg4awYsaUhbsOkdWkpqIbXFNbuRkYI1 annkyCw9jr4hXa1nxzMLRKaIzOLHxC6E/yHFDOUrvCjLAUuZFcvHe8372yKd3oKc8ceW 5Odw==; 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-143070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143070-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 jz7-20020a170906bb0700b00a51d9c747cdsi1775595ejb.124.2024.04.12.09.25.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143070-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-143070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143070-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 EA2551F22EFA for ; Fri, 12 Apr 2024 16:25:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAA1E14A633; Fri, 12 Apr 2024 16:23:17 +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 CA86F148FF6; Fri, 12 Apr 2024 16:23:15 +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=1712938997; cv=none; b=AWeXpQvxkjBshp1K9LpwDup4DJf3H/kIewbQaeexwxt3adYdnY3EJhuQZ4R6H3AR2I00MvXd/0+8vX+nAbiUPna7hwCAyeKWkab8pqEa0OH20NkC5l1feJ7LiAXRNZnGciqnyKEn+bdZ0HONS1BYFvt3Erd2M7eKAvYcM50v5kk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938997; c=relaxed/simple; bh=uIcaPuGOS8hiQjEcqpE1nekr3SjM0u1HoK56x7mT3tU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jissBviGYQHuMrsZJvIgvOeX/eUFZUla4251yU9SzPDVcehvh2CTnlhT2FZ9UDRWMxuyKg6VU37CvJ8oaj3cMNwUfcqBAIfWpqVOIMndqgqPbvI8iDWm7P9jIM/1ICX+V6mH96r3Qbw4A+K0oR4fkFlVAU3MulPIdnD926ymhcE= 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 4VGMJR2vQLz689rj; Sat, 13 Apr 2024 00:21:27 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 5955D140B3C; Sat, 13 Apr 2024 00:23:13 +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:23:12 +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 24/30] arc: Assign parents for event_source devices Date: Fri, 12 Apr 2024 17:10:51 +0100 Message-ID: <20240412161057.14099-25-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/ Cc: Vineet Gupta Signed-off-by: Jonathan Cameron --- arch/arc/kernel/perf_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/kernel/perf_event.c b/arch/arc/kernel/perf_event.c index adff957962da..bd4c2c110afe 100644 --- a/arch/arc/kernel/perf_event.c +++ b/arch/arc/kernel/perf_event.c @@ -788,6 +788,7 @@ static int arc_pmu_device_probe(struct platform_device *pdev) arc_pmu->attr_groups[ARCPMU_ATTR_GR_FORMATS] = &arc_pmu_format_attr_gr; arc_pmu->pmu = (struct pmu) { + .parent = &pdev->dev, .pmu_enable = arc_pmu_enable, .pmu_disable = arc_pmu_disable, .event_init = arc_pmu_event_init, -- 2.39.2