Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp35027lqp; Fri, 12 Apr 2024 09:46:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7k4B552hHThb3rFszxczA9DD9WXnPrGkRkzmoqSFF6eCGFT7Bl4n+ePlLpsiTGuzg7O+kN6pjSl5PvkZ/IU0FjyAB6zKEBVXJa7B4vA== X-Google-Smtp-Source: AGHT+IGlNT3KitR9bM2VMWCGa5gdBMZy874Rhi9nE6Dhv1frLTa91hHndUZyxCunwT+Bal5FLenL X-Received: by 2002:a05:6358:90c9:b0:183:ea4b:620 with SMTP id e9-20020a05635890c900b00183ea4b0620mr3564934rwe.28.1712940384580; Fri, 12 Apr 2024 09:46:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712940384; cv=pass; d=google.com; s=arc-20160816; b=EVhBp3+nUldOETxHK2sMjXgMwcqsUO8GJj6krfwkjNS2B6sZaeDitkbACwn1rqlHTr 0VkpVNOsZphr5ChOAF4CWQY92HWou+gl/6sL5tJMiammdEf5OoPnDiZE7Y6iBnvm4RBo XJzghz0IHZX79WWj75zgTu1xcx7DxsNTPR83eJYpOrbVaFEoqWeux5mx0lYp+bvjLdym HCZz6eG4NvPdXOqhnshqh/H+TxnCouYgA/PqFe9r5qrzQRY2sYbosfb+8e1f++9Hv4D7 qIh0RZUEm8k2yZM8SMqCV+ZnMsP+8r46OxkzK1dwmIhkoFuoRs9LHOSsGZUf4E2G+k34 3KcA== 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=muCchxYCxLMqmHLHLS0JWTidNS2x4Lel36crwICLZuM=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=XPODup8YkJmLIAcX156FhISYDfW3bf3geGjCQrMZa87kyE54Vx6J70BJq6Drw7vrD8 +6rzUivYpGgdScrZNqZdVm+NOyncy3I5szFGaIGkDJMtci8UEAk/6fpQ05wsPrn8Ge4l mI/DpUEQsU4DUJKne2sRPALqN2rKuw/j8qWyScXStsujPJ20/kQK7faKwsFey+B9Y05u eRqoXvoFtPxavmy288R6VaWlFlhbboYlZkjpOLfLR/fBB19CJIYjVAkkrjigYfhy6sk6 Q52zomgZZ/EpiUtRVXRTCy2B7BASk0/wxyBMeNfwU8b9Yq5L0hfHphfjHjMyxu6RUsZ9 Vffg==; 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-143075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t6-20020a6564c6000000b005dc864bb6e6si3617005pgv.634.2024.04.12.09.46.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-143075-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143075-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 52679B256D0 for ; Fri, 12 Apr 2024 16:26:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06398149E1D; Fri, 12 Apr 2024 16:24:50 +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 A8C751494D9; Fri, 12 Apr 2024 16:24:47 +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=1712939089; cv=none; b=rGvoKW9fbjhqIQZJDS+ntuS5B4NmfliiM3VtrQUAwyZxWvitsxqdke6P8maTk+ugBKOJpXwLb8aewemjkgGKWwRNVzsSL9nxXIsi1LzaziIqoOkp+zkMsN/XPrXA7PGN1INjz1r7QRSAcLnZsym4hdGRvGjYLMX5vRM621P6Nv8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939089; c=relaxed/simple; bh=knChXPbAby4vPyCTbD9SHOU5rvr1w2NKjGFBpG0ctng=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tt9yR656R6weVgiK9qB9fdDeE/ChQdpiCD/yUrOLnIr5+veiYbLzzxyKXpsy8nL0Jbias9c4B0HrGdpgAKwtDkvs3kS+R2+yxu2G/8Ijsq/46JpzXaSNHlQJ5F18jBqJPE5znLejBvgc0k1fUQX2t06rgwj3E8+MH6EYPjVcMP8= 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.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGMGf75Pfz688p7; Sat, 13 Apr 2024 00:19:54 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 71EAD140119; Sat, 13 Apr 2024 00:24:45 +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:24:44 +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 27/30] fpga: dfl: Assign parent for event_source device Date: Fri, 12 Apr 2024 17:10:54 +0100 Message-ID: <20240412161057.14099-28-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: linux-fpga@vger.kernel.org Reviewed-by: Xu Yilun 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.39.2