Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6101872rwl; Tue, 4 Apr 2023 07:54:31 -0700 (PDT) X-Google-Smtp-Source: AKy350YulITFiM2e2+etOxAlmQLxW23j9Bv8AG5KMg/LRM7OEw6kOSJpI/uiV6Mx2I3G+NSfQ82x X-Received: by 2002:aa7:d857:0:b0:4fc:7201:6e4 with SMTP id f23-20020aa7d857000000b004fc720106e4mr2908980eds.20.1680620071278; Tue, 04 Apr 2023 07:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680620071; cv=none; d=google.com; s=arc-20160816; b=p7VKdzYkCLuG0Q+s7j/DtGHV6lhpn/Wk10hqgr2HJPa+YEuJUg94fXG8MtitBDSnW2 9gi+bHna5+WjREyI4roAHAU9oxY9Jz5QiJs2qplezEWhc26rDr5WISeyiCuKFN/fBAWc T3Wiz57hZd6YxPH4USmPqG/NVehcV4c45jG4AbGI3n8BcNKvkL3MD5YBISw8TAzNyqzw 0YD6eWGlQ96tkqoDIXMXw6u0je1HqyBkNKBLu9TjyJKsHHqgPrwHyr1mE/lElc2ja0rL n5M4VaSjs9OWk3Lxwiwm6G7pEzoRYHReVbgPpt7zOREpaQrQQLH5mAgGJk/IUKR7b/dX Mt/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=PijHvMMZs0weCzWH+/jqVswAD3GU3dSrt3DwTKfvSKA=; b=COXtGHVV9YSiUBvbGlSZTkh/HFL0p6Ny5HpnqCgsu3iQeHuojIluPchEIwO1rzrgkO WrKRqiWN0mJrCGOYa1Tdvu7MEPXmIKeyu5iLjqqj4VFchJPbiV8wUW843FMO1ddcGHMM EMFLcYuKc9zOrA9xiaHOb1I377h4xd2riMo+2aIcVFcLKBJWoy6a1L8w2TH8CzIbH6H/ JWXOgoD0AS3i4EItEMqyClnSb417CPrAASCNZbTcRFBMhIewFscy4ktSryDxMkcjRwhs 6I35gjDZSCjuQs6mv/M1+bs1SfJHKpjyTFlfpoWSgWMbA4qyfB2bCNFn+Rug3Z1mykfJ dy7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020aa7d38c000000b005021cce645asi2132026edq.617.2023.04.04.07.54.05; Tue, 04 Apr 2023 07:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232180AbjDDOwc (ORCPT + 99 others); Tue, 4 Apr 2023 10:52:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbjDDOwa (ORCPT ); Tue, 4 Apr 2023 10:52:30 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 05C7330DC; Tue, 4 Apr 2023 07:52:30 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 42F17D75; Tue, 4 Apr 2023 07:53:14 -0700 (PDT) Received: from [10.57.53.173] (unknown [10.57.53.173]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B64B3F73F; Tue, 4 Apr 2023 07:52:24 -0700 (PDT) Message-ID: <9fb9b1d7-2acb-d2cf-e81b-4b86a1cb9d62@arm.com> Date: Tue, 4 Apr 2023 15:52:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 23/32] perf/arm-dsu: Assign parents for event_source device To: Jonathan Cameron , Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org Cc: linuxarm@huawei.com, Dan Williams , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Robert Richter , Atish Patra , Anup Patel , Andy Gross , Bjorn Andersson , Frank Li , Shuai Xue , Vineet Gupta , Shawn Guo , Fenghua Yu , Dave Jiang , Wu Hao , Tom Rix , linux-fpga@vger.kernel.org, Liang Kan References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> <20230404134225.13408-24-Jonathan.Cameron@huawei.com> From: Suzuki K Poulose In-Reply-To: <20230404134225.13408-24-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/04/2023 14:42, Jonathan Cameron wrote: > 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_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 fe2abb412c00..de75c00cb456 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, Reviewed-by: Suzuki K Poulose