Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1944351lqp; Tue, 16 Apr 2024 02:37:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpzaNnHRkqGeI7LSmGdrkjU8LwMMiklkj2w/Q3P9EZAXlDoKV7jkMtLDJd7ovXrp9rI8HQdXIClldClTZ2gz+v5EZ5KusqLlvqfOHJFQ== X-Google-Smtp-Source: AGHT+IHzJAZZ2+hdOtDOa/Xz5vRFoSwO6oTJcEXKy390HMxu+ePM55naIizy00LwDa4AvsymCMDJ X-Received: by 2002:ae9:e515:0:b0:78d:6791:34d1 with SMTP id w21-20020ae9e515000000b0078d679134d1mr12881303qkf.9.1713260239669; Tue, 16 Apr 2024 02:37:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713260239; cv=pass; d=google.com; s=arc-20160816; b=CMwD4ljVK0vKIGCVri+bTW6okgfrr4bHsrLqs9h/yrO04DywjkjB26XJgc72AH0M80 q9jpuA9sCIV4pcLugBpVfQWoDMPbhkddlGbLBiCuivQcLNe+YMHFAGzcj6Ik61xF85rH DpYCqO3dtxqLZy2nY66h979sVDRmOskbQtP9ZSkKGgfKa4V0BLJS199WX/uaBJRlDJcc Z7wgJmK6eC58zfrQzf1lh6tR+7PCny7gER2FcOgntgo7iCqYgli1S3fV2iK36bGPptGk 0SuYMDlrqoWMlNb2cIFsayWD6NbH8o22IqqetjNXtg0cuUnrOuuvsmysOypXuJ9b4xUT 1k6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=ZqZaQKsN3rPGzv8xrB6em4UG+B+OTkZ3o/TX7w4tx+Q=; fh=e1blLCJkteucUMkVDoUQb+cWVAgUhnHJGPSWsekYV0A=; b=Hq8FVkQWXeSmf/a1lFDR8ryjd0SowVZvNo5ZsAsRheIoOZN5jdZWk0VdqPRzlSLJZ1 XG/241//8gqr97Iv+Jof2FU7DsQ6jgcAtnuGPJQMCaO9wwwo8cY8RI4XHwGlLelkjZSm 6fDPZwP9qv68H1lm9zCzB973SO0zpAedLU2ei8EYYS+q7c9btWLYJPTx37BxIBURChE6 +kKuYoKxjThTOBrRwt2w9WqpUF+qsh6s5jPozwk1DO6RXW1xG9qfg/6oPeueFcE9yX34 baBqMCZZnX5IXv9iEeXC3wmzrHMPC1+Es6b/8YplEnxgoHhtCWRW6X1aptLNPaOKAcBR iLLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-146562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ow47-20020a05620a822f00b0078edeaca2f7si5790198qkn.607.2024.04.16.02.37.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 02:37:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-146562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 66D8A1C21721 for ; Tue, 16 Apr 2024 09:37:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F169985948; Tue, 16 Apr 2024 09:37:09 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40D498594D; Tue, 16 Apr 2024 09:37:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713260229; cv=none; b=qib9KZe1/9RSe0XB5IexRf+LHalugaNdTIPWpL/eylqpKguVo1w6MI0thBhQ+Ln6Jc+XZRdflFMFyPRdDboPRQWUYI4Sk1cCBunPOl4ZfdZqkRV8xhsFRf4e5YhIvh2vFEcSPPyqFXS/00eKpr/NrzZYtJ3iZLpzxnM1O0obw4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713260229; c=relaxed/simple; bh=yBI9KZPzbMre2zuqLdHyFt55ETKgaaVCW0a5Z76vWxc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QyhbPXpkEOba6coSfD9Trko56ynUvwsbrq/sFrr/UoY1X32MmboQmP/3EBabPvw13YvKAeJ0U2/a4N+XHrc87pjYVqRpNCokYHkLeaCl3z8TutneTPOqFsfLbXQUxewF0DTam+R1KWcTIXzQW4SLjSzt5gG+e0P+d22xexm+K0w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C56EF339; Tue, 16 Apr 2024 02:37:35 -0700 (PDT) Received: from [10.1.197.1] (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5B4893F792; Tue, 16 Apr 2024 02:37:04 -0700 (PDT) Message-ID: Date: Tue, 16 Apr 2024 10:36:49 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 16/30] perf/arm_pmu: Assign parents for event_source devices To: Jonathan Cameron , 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 Cc: linuxarm@huawei.com, 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 , linux-fpga@vger.kernel.org, Liang Kan References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> <20240412161057.14099-17-Jonathan.Cameron@huawei.com> Content-Language: en-US From: Suzuki K Poulose In-Reply-To: <20240412161057.14099-17-Jonathan.Cameron@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/04/2024 17:10, 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/ > Signed-off-by: Jonathan Cameron > --- > drivers/perf/arm_pmu_platform.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c > index 3596db36cbff..4b1a9a92ea11 100644 > --- a/drivers/perf/arm_pmu_platform.c > +++ b/drivers/perf/arm_pmu_platform.c > @@ -196,6 +196,7 @@ int arm_pmu_device_probe(struct platform_device *pdev, > if (!pmu) > return -ENOMEM; > > + pmu->pmu.parent = &pdev->dev; > pmu->plat_device = pdev; > > ret = pmu_parse_irqs(pmu); Reviewed-by: Suzuki K Poulose