Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp488034rwl; Fri, 7 Apr 2023 00:04:15 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2wwirF2rOzXy06Reyl5D7l5by70ka5Bs7ptLNZSSKWnhL8M97Vw2AhLzmru8fDw5aRdmj X-Received: by 2002:a17:906:f217:b0:889:5686:486a with SMTP id gt23-20020a170906f21700b008895686486amr1558158ejb.30.1680851054918; Fri, 07 Apr 2023 00:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680851054; cv=none; d=google.com; s=arc-20160816; b=bp9iBVQ9/RicYSEu+WI1uvdCeVloOO1qXBE1viQxguhpuleEG+naXCtrR5AvScfCe3 Qi8r3hQEghjv1Bi65K+7+4J8HYvyePhUDrY4nvHXNoxEjddjTWx7XEVeto4iL40Dkr0L IZv2x5yBtAtlx0st5FY9MSRlXz0//cP7wyNj3BvNbcTPPe/EOgg3KbFdv58P3KziZbuP 4n6O6oGw3fcngvQqkP84ws8oKZpI+/nFqDccHfPHOE6EVfQZcuS2RAHWS7cb6b8PsBy5 g7lw3EoZ1vKnF5hBFId52OOcjVNgC0nMKSv7ze9gyBJIpHPc5Wxghwak0hxhOebMhAjk 3mmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OK+e/gjnmwlqb2tLVEP04uhzy7G/NSIjaHm17DBLxUw=; b=zxJfYdmysk9y6Kc1k8KPM/vDZYhGDVoIewhlDZDZcQxFYgrRdvWEdKUP1vwKFAT0DE SQB34OxHnDcLGsJGs0TostXPUehZdiN95Z+dAV8OwatsX6O2EcmWoG++j4v5s+dNo8yD L1ZZiG5rJ624tmO0NdX0K5dhUQlwuH9h8OFtT3WCs5lCbbdjVfB4x8qSjsj3QSiWmlnp hL0W0Y0emFbExxmCoUNiyvGmgEqlLYz7OGrEtBEbEsZwWG65yukh1PpGapt5e6tMETVT OQ9zo/Eb2sWOh7S8Ev254qERvlxuvyyNaeEvvp9IvYMxu0MuoWI+9Wzh6lDXhZQFXYOJ T3WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XI2DiuJL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sz14-20020a1709078b0e00b00949cba063a5si2479972ejc.970.2023.04.07.00.03.49; Fri, 07 Apr 2023 00:04:14 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=XI2DiuJL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232253AbjDGGyr (ORCPT + 99 others); Fri, 7 Apr 2023 02:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbjDGGyq (ORCPT ); Fri, 7 Apr 2023 02:54:46 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F1D17ED3; Thu, 6 Apr 2023 23:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680850485; x=1712386485; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=O6E6owGrMJFj88FaaF7QG/CD6iTO8b8i6HJZ/FX+014=; b=XI2DiuJLhPuLb9Z3c6loIo49t/cwLVNIruJd8TMBzYD5D5IocKJ4kv4s Sks/VPyYjzXERchKH3ssP20eD095Zc+X7Pz9Lae1ybSBKoDOBlztQQBEN 88OXwZP+lIC3o75VT/ElPGHsjS+X1++z/hQ/InYoLtck9OVj+VDjmkhEX s/iPvk9ltgfubPSrMy9fWI0jQC/sqqvU6rLiQ0kNxQvxEYs+OVtYkQCsY PK+/AVA//evLKuAxP+C320HINSnTGN4sZF42fQ+Bx+psnkhmhdc7T9dnT hvzCHref9tRHQ6K0R3PoYW4yy09z+EPVxbd6UqrwXnGYlTZ71XTWwZ/rJ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="405755644" X-IronPort-AV: E=Sophos;i="5.98,326,1673942400"; d="scan'208";a="405755644" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2023 23:54:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="831097172" X-IronPort-AV: E=Sophos;i="5.98,326,1673942400"; d="scan'208";a="831097172" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmsmga001.fm.intel.com with ESMTP; 06 Apr 2023 23:54:31 -0700 Date: Fri, 7 Apr 2023 14:42:51 +0800 From: Xu Yilun To: Jonathan Cameron Cc: 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, 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, Suzuki K Poulose , Liang Kan Subject: Re: [PATCH 29/32] fpga: dfl: Assign parent for event_source device Message-ID: References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> <20230404134225.13408-30-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230404134225.13408-30-Jonathan.Cameron@huawei.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 2023-04-04 at 14:42:22 +0100, 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/ > Cc: Wu Hao > Cc: Tom Rix > Cc: linux-fpga@vger.kernel.org > Signed-off-by: Jonathan Cameron Reviewed-by: Xu Yilun > --- > drivers/fpga/dfl-fme-perf.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/fpga/dfl-fme-perf.c b/drivers/fpga/dfl-fme-perf.c > index 7422d2bc6f37..2d59f1c620b1 100644 > --- a/drivers/fpga/dfl-fme-perf.c > +++ b/drivers/fpga/dfl-fme-perf.c > @@ -912,6 +912,7 @@ static int fme_perf_pmu_register(struct platform_device *pdev, > > fme_perf_setup_hardware(priv); > > + pmu->parent = &pdev->dev; > pmu->task_ctx_nr = perf_invalid_context; > pmu->attr_groups = fme_perf_groups; > pmu->attr_update = fme_perf_events_groups; > -- > 2.37.2 >