Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp35776lqp; Fri, 12 Apr 2024 09:47:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHTVWzw3GAXWg/hhGawZ3TaSkjHEOYJb9uM5sz/aZcIVgEx8aysFPNCdeA5lrlpA2Ac0sugRjrunYOPiRHAwUOvszI9nM7gP6S6ejC+g== X-Google-Smtp-Source: AGHT+IF1A8E+2KIpAmNmpJppyC6tqcuB0W1CK7pCia5VVgxAJ91U9D2A4z0fB0Oyf+fSHhdyk+Ht X-Received: by 2002:a05:6358:218f:b0:183:6427:10b5 with SMTP id v15-20020a056358218f00b00183642710b5mr3552192rwb.21.1712940461100; Fri, 12 Apr 2024 09:47:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712940461; cv=pass; d=google.com; s=arc-20160816; b=jOCDdFhrBN92b6TVtHbMZPAIrI95ktqrxwf775GbdjqW2Oa826yVlba3twYq0tdHyD 12zBm1aPNQRAWDRbIlK+6US+KbIOVEtd8MlUJt1Y4Jj8WREFBjuwTZ2UZgZqdztYt03s wLLd4Vua9znOSZ30BLCVWZGj7n8+eDJUJppYBrepkkTRbl9uIGevTzc8kdpTC0hbb5EN /+OTjMos6rGToBKonQkgI/xiTq4BJ10dvIxs6dtluOV/duY8fhbtNlWHyd9EvEXdmZd6 V/WgBAm1qNgI3CjsyVVzZwNwo4gIvTR5JHqYUTvnPPFPu053IM08ZsQ632mybEkz/pka cO8A== 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=Jev1p/BPw12xN07S4no5ddTHV1aumBY7qh8xqLr3P7k=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=qn/U2h7dJezSJq605yAyrey+pnwEykAKXl5z6RmApN/l4KCfdvrW2DZYekg5QbNj78 X5aym3ScnTH+Ptl8gqDhJhXb431xmNQjfVNTCZ7qK9QHy5W29ia1xdd6KTturGskfT3Y 0qAz31ozR49Yi3v0IS//L0AFJPExwlHdLKSpkWX1o4Kl6d5cEuTAQFu7tuqxJ6Ec5XHK YnUYEDbf+M45qqRsNtzThnL9fq3GmY8uGKH7k+87atj0l54RXjwrUf1FH3BnhGDkrAWG jTNOxNXKTMQ0qWu8zIiKwXNppXyDKqV8vkKWeyOrVjmXFXxfu79xN5zu2pq72cFUs4tf 5j7Q==; 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-143080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143080-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 136-20020a63028e000000b005e456aaf758si3453036pgc.38.2024.04.12.09.47.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:47:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143080-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-143080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143080-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 A249DB25BEE for ; Fri, 12 Apr 2024 16:27:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EE57149E05; Fri, 12 Apr 2024 16:26:22 +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 A1DAB148311; Fri, 12 Apr 2024 16:26:19 +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=1712939181; cv=none; b=ggDMD7z6kQcMarT1ZdcxIOJcKPzQZnWVP02DaRleQTFqPTvgbwIHrRI3qxe4v2w1qXq0AzVCi7VsNFHp5XycBx5kkZrY16IhdSaAHojBcpLIcBOZowUGsjcXwqfDVIajwVLQZV7hK5z3okx1eLEbY5j8bbUeMV2X3VCyTUlNt48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939181; c=relaxed/simple; bh=UPz7i8yN0deBrmo6/AkgbrxyBuRJPiwNWCnynK3v/I0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YMhI2znOt4CdITRS+W5jYlaQjlE80ToQnoDhWtDxjpKJ95GLnRQSVdJUeX+cU16Pf7KXQtLowLxRkxFy3ukAYyLCRJ4VYJwPL/1oUsnxlLAo97K9v0jPnFnuJDrygGcZyjy+4gQcL2JnLCBD9er3i9hQMB99gPH4H/JTrfvjoII= 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.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGMJQ70Bvz6K6hC; Sat, 13 Apr 2024 00:21:26 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 7040C140595; Sat, 13 Apr 2024 00:26:17 +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:26:16 +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 30/30] hwtracing: hisi_ptt: Assign parent for event_source device Date: Fri, 12 Apr 2024 17:10:57 +0100 Message-ID: <20240412161057.14099-31-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 PCI device. Link: https://lore.kernel.org/linux-cxl/ZCLI9A40PJsyqAmq@kroah.com/ Cc: Suzuki K Poulose Reviewed-by: Yicong Yang Signed-off-by: Jonathan Cameron --- drivers/hwtracing/ptt/hisi_ptt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/ptt/hisi_ptt.c b/drivers/hwtracing/ptt/hisi_ptt.c index 4bf04a977840..3090479a2979 100644 --- a/drivers/hwtracing/ptt/hisi_ptt.c +++ b/drivers/hwtracing/ptt/hisi_ptt.c @@ -1221,6 +1221,7 @@ static int hisi_ptt_register_pmu(struct hisi_ptt *hisi_ptt) hisi_ptt->hisi_ptt_pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &hisi_ptt->pdev->dev, .capabilities = PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_sw_context, .attr_groups = hisi_ptt_pmu_groups, -- 2.39.2