From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19432C77B62 for ; Tue, 4 Apr 2023 13:52:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OZXjoFQo2T8i7RaG01XJiSwNyzLpbN3gRAKt5U0REwM=; b=bFZjS9BWxjDa29 /taiM7qWIMh1+3VwA4Nd8y9vv3QlRQ22HOF4PUVb5lM+gLOFUWNAfq3IhqrZygNaEEf4wo2SJTkJ3 sGkbJpQT/rAZeQcG+h933GIWRGsFOeFH8G6OlORrt+KVAqJjU/dtF4dj4yrRM+b69asX1X1ns2FC7 WlAk9Uwcu9eiuyfRSgpYSL4Cgu0z/mEwjIwK/lVS/ljWFozl18HKkV1wXbxn84dIUQXxZDwrfb7O/ kWYUELVdlRUyu/lyIjuOoNfN3Z+r05S/1Poa9A1WKBNcMmYP6o/jAdaoIg8QArsQkqu6zZyYAvkq4 SCOv2O7beA4rLnNNZNGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjh4n-001aOM-2l; Tue, 04 Apr 2023 13:51:57 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjh4h-001aLA-2z for linux-arm-kernel@lists.infradead.org; Tue, 04 Apr 2023 13:51:55 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 707F46345C; Tue, 4 Apr 2023 13:51:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD0DCC433EF; Tue, 4 Apr 2023 13:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680616311; bh=HviaHkIS4i8rPDg2qZ0RD/MEkAaKYhlkqvmr6+Shp3Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lYtAIkgVw5Fxxbkt0I3LiepitLghTtHCDZJ2OLtbbs/p6vISKj6flXJFQ2aPUNSZn r3BPFeZ7VkHHRoYylr/980Y9ud0KeZwTsPLpN9zhDUM7VIiHoSmma7T78EsjF1Mx9z t+7nKQOJKlHvdZRc/vN17FaanvpfWJ8Q+WH9HIO8= Date: Tue, 4 Apr 2023 15:51:48 +0200 From: Greg KH 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, 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 01/32] perf: Allow a PMU to have a parent Message-ID: <2023040438-mounting-answering-bce4@gregkh> References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> <20230404134225.13408-2-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230404134225.13408-2-Jonathan.Cameron@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230404_065152_026109_DBDB65EE X-CRM114-Status: GOOD ( 14.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Apr 04, 2023 at 02:41:54PM +0100, Jonathan Cameron wrote: > Some PMUs have well defined parents such as PCI devices. > As the device_initialize() and device_add() are all within > pmu_dev_alloc() which is called from perf_pmu_register() > there is no opportunity to set the parent from within a driver. > > Add a struct device *parent field to struct pmu and use that > to set the parent. > > Signed-off-by: Jonathan Cameron > Reviewed-by: Dan Williams > Reviewed-by: Greg Kroah-Hartman _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel