Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp22292lqp; Fri, 12 Apr 2024 09:25:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKtTawDwlHYTGWvzxLUXG+EWaBo9BtUkZU3meTq/qcAC7kbl1eqSQYicKDtWD4KR04P2LV0pjAQ6zFQAXWHDxYFxG7V7lrXtNtVg+tnQ== X-Google-Smtp-Source: AGHT+IEL+7R/ykOOyWFtO9VGaWid5NzSYYxfk9HXpB9CP4uF5J4/RNMEsuZ+CI0p/dlU0L+60rHF X-Received: by 2002:a05:6e02:1384:b0:36a:2cb9:12a with SMTP id d4-20020a056e02138400b0036a2cb9012amr3354370ilo.16.1712939155610; Fri, 12 Apr 2024 09:25:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939155; cv=pass; d=google.com; s=arc-20160816; b=EIPxBtJ8iBonqIEfOumpvxQWcInBTGJyEbjhg+Piz1S+a7hFgjcksZ54E5Onmx9/qZ Ta+j9RzBvP9J/ghm3CfTLE/GGgCYQqi1AGD9KhpB+8UTRKKc3H6a627NglnjeoqqslPl IiHty1egjQuLNx/8rXx+70ZrR9GWy4PDyQYbwkMZe97qTK+u7QfGBy6W+FMQIXnNaSlq MruTFnksLNNmAtges6kMtBv3ElXvK4hlxihypTGcHbF9HiYw47usLWGTW0dcCOYk9WX5 ysdOanYP+lw7luhQaXHKWmB/y+/meFIb0jdFXX0NOfzwZkyPdK2RKrvJzPoc6swAOmM+ TG0A== 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=I+T+E3ln/iZmRVUl5a3ItxGj46AC/e13rAdV9ai8lL4=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=i+mGFPVZ/UZf/1S4NsX6VAZ891lLCeiaghayI4KFYWMxmbZubmqYXXdCE8Jd6DiYql A+nl66WYNRZtbCtvyBmec+23r9D4eyVmpljkqFvlzc9dlrd1Xa8tfd8Jnv0eHk7kdYYd wq+u56Wk79syF7FedIPvv3kDpvicPFM4tsYNyXf/RSXlOSq3iKl97XHeYAdRNbb05G/1 07BAAZnPIzb8i2pPQw/0g6x3kbmlEh+J5cRErUdboVPtNteS9HO0UsmXiueEhiPil/Pl ZRSShEKmO32qMaRxMk+Vxvr1DtoP6HiuClFInQHVr1JyoatZwEOMb/EzRJmlfxWdhbPI 1NGw==; 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-143072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q13-20020a632a0d000000b005f0a5337df3si3687480pgq.694.2024.04.12.09.25.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:25:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-143072-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143072-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1AFEB283C55 for ; Fri, 12 Apr 2024 16:25:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4981E14BF9B; Fri, 12 Apr 2024 16:23:48 +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 22CE8148FFC; Fri, 12 Apr 2024 16:23:45 +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=1712939027; cv=none; b=OjS/UJXz3F++GkhKBP6cjhknQqzU4Ig/FIXBlXJrm+lOgdHyTwzQCHZQARLv3JswGVXdGcnXEsSC2tthqpUxMUDhs8RrYuZt3XqYid3CCCI/5CZkZnoklT8WYWcyNyXFfZyKam6+j1NkMwRnX7ARUOqu4H5Km8fSTem2Q71QLys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939027; c=relaxed/simple; bh=wsOqSTqzvpNvABZa14UFXjomfDxypv2G0d7b+onoYdc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=g+ticZX7NnLWtUzpzMAbkwAgpPKI15Wh/vZrrmtqU/nSzM9VywCly/2pxwX7tyQJKWJDTnuPXWSfzUq6bfeMMGRbDgE1E7a2Uoa4WhxOGnEhCURPhZLLktUJNt4yhyPSdMQD0NCaExDSLDv13TFJJPE8KTa57cM8R8feyRcpPIc= 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 4VGMK20zzMz6JB3G; Sat, 13 Apr 2024 00:21:58 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 17E2E140595; Sat, 13 Apr 2024 00:23:44 +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:43 +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 25/30] ARM: imx: Assign parents for mmdc event_source devices Date: Fri, 12 Apr 2024 17:10:52 +0100 Message-ID: <20240412161057.14099-26-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: Shawn Guo Signed-off-by: Jonathan Cameron --- arch/arm/mach-imx/mmdc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx/mmdc.c index 25893d109190..b68cb86dbe4c 100644 --- a/arch/arm/mach-imx/mmdc.c +++ b/arch/arm/mach-imx/mmdc.c @@ -437,6 +437,7 @@ static int mmdc_pmu_init(struct mmdc_pmu *pmu_mmdc, { *pmu_mmdc = (struct mmdc_pmu) { .pmu = (struct pmu) { + .parent = dev, .task_ctx_nr = perf_invalid_context, .attr_groups = attr_groups, .event_init = mmdc_pmu_event_init, -- 2.39.2