Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2596588rdb; Mon, 4 Dec 2023 01:57:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEul24lS+mwU6EQ8D89NVnW3E0dZNRW1SgIqc/0Th0Rykv87nMb/ItSsekowqViZ63qn6D X-Received: by 2002:a05:6a00:298a:b0:6ce:55d1:8b70 with SMTP id cj10-20020a056a00298a00b006ce55d18b70mr1032406pfb.44.1701683866401; Mon, 04 Dec 2023 01:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701683866; cv=none; d=google.com; s=arc-20160816; b=gAsTkePHnFq1SGa1CJT8XOLYF8SsVhkdGME5jVpLQELnBcQSHu1+54pZeP0GytjlE5 KTQtBChk2rHiRa67DUQGMY9mCPLQKa8CitIjPkgSBlSUYewbIsFeqvxdH18tslCOd826 IpahclAREC7UuF5KiMZ6eR17/fTtKdZYhmlOe07CYktybBH3wf7bcXMX0yozQhBoAKVz iXNDhTfr2oLBjygCszpODj2AGC8y1f+Ej7hjMi6SFpvBosRILFrqmrTYMHywreHPpevo K5RmuirH83Id8rgc8rgYFsIaVuVG66GyeyVeyljfcrm/o1iT2feRdIk14qEHBMFG3hpF t2lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=fhBX0cuqQ6V9KCQ9lHPmnflLNW07VkuZuVO7o++lpBk=; fh=aJlQBZ+eg8HslfujWITL3XuR9JHXYe+/Z+AmgaCWGd0=; b=036KQFlUoZmIrTnc6+UXFh2/UBhkyxweOYfmek3EyugsXanBIKPfsJzqTF2V2FRWTG AEX0+C5XCKuQXW0i4e5uziIKuO+F9myDLnVbfb5V9T/m52ahFm980mQFjYabHl7JuP59 DIM2EQjieKBf6XyFf7yAH8VIC2DFgYMTMFimFTCHzHxRmpy2sg7CAQdG6YR29wSbEzKU 1Cqdfc91PgCOHidtyN3gKMFnSNrMl2EAL0vKQh0MgzkjsBv4OAv/Z9424caSEezsDP8z 8T7blL2m3aaTIxTbKz/JOSE23mAj4/I+m1ihCc9MXc8fB46SWut3bn5SHrPMzVJ0kIkp M6dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d8-20020a63ed08000000b005c61d17e6aasi7624421pgi.122.2023.12.04.01.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 01:57:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A0713806823E; Mon, 4 Dec 2023 01:57:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbjLDJ52 (ORCPT + 99 others); Mon, 4 Dec 2023 04:57:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjLDJ51 (ORCPT ); Mon, 4 Dec 2023 04:57:27 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 66809B6; Mon, 4 Dec 2023 01:57:33 -0800 (PST) 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 5FF87FEC; Mon, 4 Dec 2023 01:58:20 -0800 (PST) Received: from [192.168.1.3] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BEA293F6C4; Mon, 4 Dec 2023 01:57:31 -0800 (PST) Message-ID: <2aec13e9-4ae3-676f-1ba8-c9e9a9241063@arm.com> Date: Mon, 4 Dec 2023 09:57:31 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH V2 1/7] coresight: replicator: Move ACPI support from AMBA driver to platform driver To: Anshuman Khandual , Sudeep Holla Cc: linux-arm-kernel@lists.infradead.org, Lorenzo Pieralisi , Mike Leach , Maxime Coquelin , Alexandre Torgue , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-stm32@st-md-mailman.stormreply.com References: <20231201062053.1268492-1-anshuman.khandual@arm.com> <20231201062053.1268492-2-anshuman.khandual@arm.com> <20231201123515.gntwvhsxd5nzojn7@bogus> <58882cab-89ce-4554-aee4-24e70d82fc09@arm.com> Content-Language: en-US From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 01:57:43 -0800 (PST) On 04/12/2023 04:48, Anshuman Khandual wrote: > > > On 12/4/23 09:56, Anshuman Khandual wrote: >> >> >> On 12/1/23 18:05, Sudeep Holla wrote: >>> On Fri, Dec 01, 2023 at 11:50:47AM +0530, Anshuman Khandual wrote: >>>> Add support for the dynamic replicator device in the platform driver, which >>>> can then be used on ACPI based platforms. This change would now allow >>>> runtime power management for repliacator devices on ACPI based systems. >>>> >>>> The driver would try to enable the APB clock if available. Also, rename the >>>> code to reflect the fact that it now handles both static and dynamic >>>> replicators. >>>> >>>> Cc: Lorenzo Pieralisi >>>> Cc: Sudeep Holla >>> >>> Except the minor nit below which may apply also for few other patches >>> in the series >>> >>> Acked-by: Sudeep Holla # For ACPI related changes >>> Tested-by: Sudeep Holla # Boot and driver probe only >>> >>> [...] >>> >>>> diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c >>>> index b6be73034996..64de0bee02ec 100644 >>>> --- a/drivers/hwtracing/coresight/coresight-replicator.c >>>> +++ b/drivers/hwtracing/coresight/coresight-replicator.c >>>> @@ -38,6 +38,7 @@ DEFINE_CORESIGHT_DEVLIST(replicator_devs, "replicator"); >>>> struct replicator_drvdata { >>>> void __iomem *base; >>>> struct clk *atclk; >>>> + struct clk *pclk; >>> >>> [minor nit] Perhaps can be documented as well ? >> >> Sure, will add the following comment above the structure. >> >> @pclk: optional clock for the core parts of the replicator. > > My bad, this will be the following instead. > > diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c > index 64de0bee02ec..44b9a77ec8aa 100644 > --- a/drivers/hwtracing/coresight/coresight-replicator.c > +++ b/drivers/hwtracing/coresight/coresight-replicator.c > @@ -31,6 +31,7 @@ DEFINE_CORESIGHT_DEVLIST(replicator_devs, "replicator"); > * @base: memory mapped base address for this component. Also indicates > * whether this one is programmable or not. > * @atclk: optional clock for the core parts of the replicator. > + * @pclk: APB clock if present, otherwise NULL > * @csdev: component vitals needed by the framework > * @spinlock: serialize enable/disable operations. > * @check_idfilter_val: check if the context is lost upon clock removal. > > I will update replicator, tpiu, tmc, and stm devices. > funnel is missing it as well. If you build with W=1 it shows up. > struct catu_drvdata and debug_drvdata do not have the comment section itself. > _______________________________________________ > CoreSight mailing list -- coresight@lists.linaro.org > To unsubscribe send an email to coresight-leave@lists.linaro.org