Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp874477rwl; Wed, 12 Apr 2023 05:29:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bfJYh+lc084IL2cpA+R2DtqmQuPrP9LQrSd6+ogzPir+eIFX+l1PsgeY3CU98mMfOUqU8A X-Received: by 2002:a17:902:c793:b0:1a1:8d4e:a71d with SMTP id w19-20020a170902c79300b001a18d4ea71dmr5956007pla.46.1681302541510; Wed, 12 Apr 2023 05:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681302541; cv=none; d=google.com; s=arc-20160816; b=Y2cbOiU7sh7ZlA6og6kMCGpDRx65bIWUFHhaukZebd3dC5FCckeCD1/QZ/9tnt8EB6 n42s9pSDnUCdb5wtCDO3TBNcych5gMMJ3lryvXtZHeeOKfvCjdGPoDZ32v4gy3+CI3n7 fwGfbH+1GIoySyp63EZm3N054fjJUXno8bqSnlTljD+WDkifUAD4/PLJ9aCF6BHpeh57 Soh2oZqTD3ZXJm4451spn+IdgxRvWXKYH6Eb74EGFkL6xGnEY3Gq31y7eZY/L42+vDKu tZlShoVwR2SLOlKgwSt8sUY3a0R6fJXfzk5JsQEmfYBLAp6bw88d4PBTYcu/5UgMu8p5 reLg== 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=q1q2GozESDOcW5eda5RyDkBS9pUHW00r2DRG4XbptxE=; b=kDMKXhHsEQ8Rj0f6hNWINRVReJ1y2ihYP4V7R7xF2QMiTiDVI33oBZBPZngH1K952V l14muclMt7+p8zUsmqVSmtq5oD64K89fakj6Dp8RVRUL29pemJq6ZVVKcqxapU0EkN0o /29zGpytAxX9dx2Hf4LDuJZTCpE/J1g1D3raYgWdRUX8AV9BfCIxWgJJRvpmItK98FIc zLAVxmAm+goTYgnVbsCkw7pFB5fOllGUXZh7ERdD7mlEfudiGt6mfQxWFcWmZZjyxLUQ KoAL8OwP5WEBuZe9v7+JvWQ5Pqmh4RQKejQDBQQ6ADtWccKAsoOkNrg8T58p7erTJbTW QjXw== 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 li15-20020a170903294f00b001a6532ab598si4902604plb.622.2023.04.12.05.28.50; Wed, 12 Apr 2023 05:29:01 -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 S231513AbjDLMJg (ORCPT + 99 others); Wed, 12 Apr 2023 08:09:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231532AbjDLMJd (ORCPT ); Wed, 12 Apr 2023 08:09:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53ADEE50; Wed, 12 Apr 2023 05:09: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 812CBD75; Wed, 12 Apr 2023 05:10:14 -0700 (PDT) Received: from [10.57.81.24] (unknown [10.57.81.24]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B382A3F73F; Wed, 12 Apr 2023 05:09:25 -0700 (PDT) Message-ID: <0a21a714-b1ac-9899-748a-ca46bec75283@arm.com> Date: Wed, 12 Apr 2023 13:09:24 +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.1 Subject: Re: [PATCH 20/32] perf/arm-ccn: 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-21-Jonathan.Cameron@huawei.com> From: Suzuki K Poulose In-Reply-To: <20230404134225.13408-21-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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-ccn.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c > index 728d13d8e98a..dc8b0dcb436e 100644 > --- a/drivers/perf/arm-ccn.c > +++ b/drivers/perf/arm-ccn.c > @@ -1265,6 +1265,7 @@ static int arm_ccn_pmu_init(struct arm_ccn *ccn) > /* Perf driver registration */ > ccn->dt.pmu = (struct pmu) { > .module = THIS_MODULE, > + .parent = ccn->dev, > .attr_groups = arm_ccn_pmu_attr_groups, > .task_ctx_nr = perf_invalid_context, > .event_init = arm_ccn_pmu_event_init, Acked-by: Suzuki K Poulose