Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp21794lqp; Fri, 12 Apr 2024 09:25:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUS+Y1TGx4D8vz2FvZKOVqfZjagw7nSBGC6O5WL4nNa98l2Yp8k5hPVXfLOGCedr5rdAOzVNeV3pvA8u0s45yATeu7luZozajqpCYQtFA== X-Google-Smtp-Source: AGHT+IEqyDPZ2ieS/vTk4DOF3ArVN0MpOxyXiyRg09TmJAlpCarpPN2h60VGgR01bS+7jfOpcdL7 X-Received: by 2002:a05:622a:2890:b0:436:567a:1ed0 with SMTP id ke16-20020a05622a289000b00436567a1ed0mr7037575qtb.8.1712939108050; Fri, 12 Apr 2024 09:25:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939108; cv=pass; d=google.com; s=arc-20160816; b=grSpvSJoqtHR9MphsWpMDiD+lKyK3OKZFWVEA3hpPZwl6LYp4i/3U7L1MDXLC3EBUm +7NFcGOfGQTNsytKwjJ4at4xUpDVRvUgLn+OIrQIMRXWoqdkQaNjqZuo7L8TAHxnlMjN SOcDeYkOkwAwvGs/FrNfmI6z33VCkCpitXh1tOz1p7p3uFtv5kbe0KtlRE5DmppMRoGo X9wwFtvXqSbWoHyvaJISgiwkw1NowLemocHm+TZdARiTG82+B8ZnEXf3eoO+8Dpaml/T kQcrf8d2PQ6n4DhnHDrCtM3Fq96s/Wc51snsIYhLJ5bUgsh/nY64mFCHjxWDIIjzO9hj R/ow== 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=T1hqHH3hzmMxsB8buRgrbGEcdcg23URbJY8jLKLHKyU=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=l+B1yWHsiPkvVY+3zOa9gRvto0S9g2+F4RH1t5ytLo3CGHPd2NCPwmRXMaNg9OfLdv OJJEzW0V4HO7VUf7pmGJbMuTczY4S3Bzks6oaqD3YYtCXBUrrTDZ7XnNPWVz0JP7y2uX 7YJg1qyHcA6EqFgXzUpox1cGo7HA/2JM3vRQKlHioyrJz0yyTTp8RI4Ja5hcxfmv0PIc /lXJZF6JhbwtYoMjK/SBWNeODiezwTyLnP9m9OY8S0MhboQo50ksw3WvwWzBW25TUWFO /Phj20y0pHZkoZy9TQp7mQLoGmAdOSMNjKwvERm5/TceOfnRJ/Keu2WO4paw5qM4kMOY S1hg==; 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-143068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v12-20020a05622a144c00b0043674bbb7f3si3196566qtx.334.2024.04.12.09.25.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:25:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-143068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143068-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C15E61C21B62 for ; Fri, 12 Apr 2024 16:25:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26A661494A1; Fri, 12 Apr 2024 16:22:47 +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 CD875148FE8; Fri, 12 Apr 2024 16:22:44 +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=1712938966; cv=none; b=KChfHhSgx5YGjD9RRuBNPxL3KpGPp/z052ypJKAxFYJfbnlU2ezeeI4vnNq3O+0PrF15T8+upU5lRJCNvwLwoLPBb1RRfBwvoTgQmRJTiGCCejtREqNpwqERLTYIM9hMLEH11LiuLPitCvZZNBGMhsG7Ea0gw4ChyAfzp4VHK9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938966; c=relaxed/simple; bh=pPgqQ7CwSD5D134RpI9fojYTp33T0bcTvVNFf4GDsDw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gWbLx6iGlCfSzsTj9PkMpEiBxfHHLBq4lIcdzEDvvC2Q0Z4gpDcTeq65upN6ELLcRRSXm/JwhmZ84TBHqdckkv/M+JanFMHp+evON8Bh1ktYAz+2hHNekhfCFJBjytkw9hWAH3V6DqOHg70a7xRKvB8egU1QfxbCfjsXONDb80g= 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 4VGMHr5Ntsz689rj; Sat, 13 Apr 2024 00:20:56 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id A938E140119; Sat, 13 Apr 2024 00:22:42 +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:22:42 +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 23/30] perf/arm-spe: Assign parents for event_source device Date: Fri, 12 Apr 2024 17:10:50 +0100 Message-ID: <20240412161057.14099-24-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/ Acked-by: Suzuki K Poulose Signed-off-by: Jonathan Cameron --- drivers/perf/arm_spe_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c index 35f0de03416f..9100d82bfabc 100644 --- a/drivers/perf/arm_spe_pmu.c +++ b/drivers/perf/arm_spe_pmu.c @@ -932,6 +932,7 @@ static int arm_spe_pmu_perf_init(struct arm_spe_pmu *spe_pmu) spe_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &spe_pmu->pdev->dev, .capabilities = PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE, .attr_groups = arm_spe_pmu_attr_groups, /* -- 2.39.2