Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6062131rwl; Tue, 4 Apr 2023 07:22:27 -0700 (PDT) X-Google-Smtp-Source: AKy350YCTfVlAuYIHmGFCeFFY3I40CtWdCJ9DGV+30Pkyjf2YRlIcV3ekGbfOI4y81iohJrwOUbn X-Received: by 2002:a05:6a20:1e4d:b0:da:897b:ae40 with SMTP id cy13-20020a056a201e4d00b000da897bae40mr2442707pzb.37.1680618146848; Tue, 04 Apr 2023 07:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680618146; cv=none; d=google.com; s=arc-20160816; b=J6SQUnjJyRTO3mOJq3xv6WGGL5Vr4RYQRjzU8Rr38wrlihlyWFl/HTw5ty8GpPOxUk ZoNgSNpLgWhaAEKg1vXjAoI2SWr0DC8ks1MMVuKnKG/vnebEyD7E55Z/YwmdKDFG5Vf+ h/vO3KOVB/AYJaPiHzxSFhpVBF3UlXCCLsprTtw1AzxoJ3bhFOXh6RgVc4/7Jo7oq8ZC L7Tz15c1/3DDdALp/pHVAliRivs3u3YiwGs9U4kDG4O9qh9uixUY1dQNnNBiO4KW/QwA FWWROcfl1m0IAd17HVnAzZ/tMOz7zwpMuht/of8iokg315eT83LT9v/fBssJwla5TXGe /Q7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GCVESnYjARA3woiA3jYiduy6mBXWYPu5w1kC7nF4LBo=; b=ioP00pDfk0c+U52MuXuo2wG2ra+ARci4fAHnrcAf3xHc/FDCNtFFDoUf9Dn7te7rWb hcziA/eq9MqQ5NoGpA/BgY0+HlohNH54kQg2g6Dq2gHmHOKxmd7zqwC6kcryRJI3t0Oj yHK0Em65Y2OSYSg4O9rc487Mhcg033Fwagn+tOxiROasf3IL+6oY8dSts69SFRsr3dDb wdgXisHfP1/eMmBpNx8vwaOvrtbqxx2u7+8abOV8uf7w30sfINu0tcQ9a7ZVUTndrc/3 CgGEsstJqJ3l8n2QR4IyBwY1Z/I2ud6U6105X4jRdYe8fNeBWMnfjUTcz+YS6ALEDGvj W1lw== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j31-20020a634a5f000000b004dab94e3f03si9912055pgl.758.2023.04.04.07.22.14; Tue, 04 Apr 2023 07:22:26 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235752AbjDDON7 (ORCPT + 99 others); Tue, 4 Apr 2023 10:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235809AbjDDONz (ORCPT ); Tue, 4 Apr 2023 10:13:55 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69623526C; Tue, 4 Apr 2023 07:13:23 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTmM1LsPz6J7BP; Tue, 4 Apr 2023 21:55:15 +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_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Apr 2023 14:57:11 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , 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 , , Suzuki K Poulose , Liang Kan Subject: [PATCH 29/32] fpga: dfl: Assign parent for event_source device Date: Tue, 4 Apr 2023 14:42:22 +0100 Message-ID: <20230404134225.13408-30-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.122.247.231] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 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 --- 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