Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp21312lqp; Fri, 12 Apr 2024 09:24:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/ORdRs8Np5xRatNNG7gHy60rXCsZ26HonDb3D3GPZCRIvexximclJiY5GLh7muPPHjsxQkFXdg2UrB0SJzO7OlV0K0IXr4B8/sep8wg== X-Google-Smtp-Source: AGHT+IGblMMka2Z4JacT7ZeTqVNY6ERKyEVXF7+wn4TkOSdpQ2JC8UxMXSBK4q2gZ3VR0w3XdD0S X-Received: by 2002:a50:9991:0:b0:56b:ed78:f58 with SMTP id m17-20020a509991000000b0056bed780f58mr1951660edb.33.1712939065584; Fri, 12 Apr 2024 09:24:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939065; cv=pass; d=google.com; s=arc-20160816; b=NWyFEGWzd6zaWC1Re5Ib9R3U2HKmuzJxZEP8WsPswYGxQ92EqXSQUjaYEXODZlyKrX MdbMT+kZsOPxRhF+ic8vw/lP/+yPGbsmN/Pze0ixO1oWh4+gGQJNMxopxnDzTWnFldIp CIHvRC+fBoN3seNiavY3FATxmhVsW8JExLV8jHOzpI0RE9BRd56tOXlQg2xuAvlVkyXQ 3XBwrJR0BHTwCfrT9cibZEDzVCPMNFCLpzS3h+HEb/YmU+lxg0XPoGPHFKTXPP2bU+69 bVQvdWuH/EIlq88pJkSIiMgJ1iByimWRLK96DJzABQsaAg6ky1kLGNGet2vEOcfWIHyB hlIA== 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=dxHz9H2zglUXIBysznvbpE/fTL/J0MH6YuwLrQPUR7U=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=qUjxi7t2kr9O53HZmL1QcR4tdQMeWIaatUk78Tz7vfBL36wcJ5a4gFUVzNv1L1Mmgx 7mK2cMNliEDaGi2yqRTG6bdVrkM0j9LTKucjuGWxjWNgcfcRLiR3QcRI3QCz2E/c7DmL fUHxJFbxDfC/plsZDDdZAf2emmA9N5HOLh3D6H3tjVME4qam4PQnhIj/bwaqfDsNn3YR f9CDGJdfSC53onAZyiAAKU97fhwvM8KIxzz/LVOr4dweOcBM9P7T7RYPhvqxQpL1QMmh IFMqNaDcKDhA8b4TtyfXxLnWfeWl2eSpO/XeWIJT8nxdomLtnjaOnFScQ4iSOgqMeh6+ gm6g==; 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-143065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143065-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. [147.75.80.249]) by mx.google.com with ESMTPS id q28-20020a50aa9c000000b00570091e15f0si216736edc.73.2024.04.12.09.24.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:24:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-143065-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143065-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 5326C1F21BE1 for ; Fri, 12 Apr 2024 16:24:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C033814A091; Fri, 12 Apr 2024 16:21:45 +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 82E6614A088; Fri, 12 Apr 2024 16:21:43 +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=1712938905; cv=none; b=LYiiXu9XkaV0m41YHTt5upo/lcen4KNnnB1CxJDyXs/txgZXtFW4kEvxC1rd7irHHz8tFtVVmwWpv3E/A4Q4cIsM/zLEZnznQ6dHUtmmJ81kW8v1MCwgqC2ALLpwFRrD8WQNO+8Aweb1ng8Z/KPZCq+GSyQnSS41BngxV111wps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938905; c=relaxed/simple; bh=7Ln1zGDs5VGL/Ua6TP+tyPoWlilVIdN9hdABXgxZgtE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=E2IRXe7XnWbDh8/wQh+oWpJ+Mx0f25o3ocpOIclK0UY4/ssRVnnbMRe51PFUAYP1R03YXpf0bjnSgxO/QT1F/3eu85InM7aikN/0gz5+LAfMQ/z79LFrYwh1aGbwhh85UL6WMEPywpPylWoqE6ue8DUe+wI/VOwfgXm5e0WMfQ4= 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.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGMC65n7Bz6K8gH; Sat, 13 Apr 2024 00:16:50 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 4BED11400F4; Sat, 13 Apr 2024 00:21:41 +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:40 +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 21/30] perf/arm-dsu: Assign parents for event_source device Date: Fri, 12 Apr 2024 17:10:48 +0100 Message-ID: <20240412161057.14099-22-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/ Reviewed-by: Suzuki K Poulose Signed-off-by: Jonathan Cameron --- drivers/perf/arm_dsu_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c index bae3ca37f846..ce98bf169574 100644 --- a/drivers/perf/arm_dsu_pmu.c +++ b/drivers/perf/arm_dsu_pmu.c @@ -751,6 +751,7 @@ static int dsu_pmu_device_probe(struct platform_device *pdev) dsu_pmu->pmu = (struct pmu) { .task_ctx_nr = perf_invalid_context, + .parent = &pdev->dev, .module = THIS_MODULE, .pmu_enable = dsu_pmu_enable, .pmu_disable = dsu_pmu_disable, -- 2.39.2