Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2652654rdb; Mon, 4 Dec 2023 04:00:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IF83+rpwO7+jyLPiNkOBVzrC8403/ooXuq9J70dDcn1j23ijTCQkILAldV8/NrxNCIUlDU0 X-Received: by 2002:a17:902:968d:b0:1d0:6ffd:e2d6 with SMTP id n13-20020a170902968d00b001d06ffde2d6mr3578102plp.112.1701691242104; Mon, 04 Dec 2023 04:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691242; cv=none; d=google.com; s=arc-20160816; b=oDMgSaWMoy5PpJhe3hRoPwM/2BZvT9DP93H3b0sRhBBT0AyUg8f3MfxXY3GkLpoN1C iD+uVx5qwBQFzX2HZUaMAIg8eU4l0fzGUY0+CvJ5lhoYYwdqf0mlwlQPFu4eaV6LOr8F sayEdzuclKBwJq9fQKtvSaeMzVTcGiEBWx1H+SYI6yPol07UArKOAY6RwQEKnU0eAsiO IK2YE3Fa06NcqR/aNSLu17nKSYBdNw3mVUFkt1uPDaQntTIKaXNr9DdzHKGe1hJQOmTm RuoSV7LdlcJGfpcpURaryVRPeGreC4kq1Pz7UFkCZFlzhS6a4Gghn4o/FTqJGKFhFSL7 Q9PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=POACV296LxGGY8CKGb084omt17xwA4c23vT53fVJ/+k=; fh=EDT5jlm3BWiOmMhpscJx6JotGM8vcgLeHMSATgody/Y=; b=P7h9nVwjqSuPFKuExD5YPj+YDq/wo6s37P5cXqZHZh2ibwt8wdx5nXxsixAF3s0T7E IZbikfABMBYxQqYXVcmUfRXJZMxAfZ+aHjMyQRK0BPXTD12FtCtLz6NwvF7j0amnYj7p o6Ocv4FUii38fVtFVkIP4+r2Ul04MA5ydT+kIW7WZrN34GNcIBf2AZIA3NaoA0xmsnTv NzPvQFuzWMCt51jThdv65arZuCRWZ4HOHSARpI4uUUwFNCEm+4b/18TrP0Oauc4TX8+a ClJvEcaFMm4qPImCOA3mRfC7+7cYA3LNvV28ERF/2L8+r63PdnZIcS2y7mCdaAezCJM1 2vfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u4-20020a17090341c400b001cf63d5130csi7804046ple.160.2023.12.04.04.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:00:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 758898079DFB; Mon, 4 Dec 2023 04:00:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235414AbjLDMAU (ORCPT + 99 others); Mon, 4 Dec 2023 07:00:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235400AbjLDL73 (ORCPT ); Mon, 4 Dec 2023 06:59:29 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9FA4210E7; Mon, 4 Dec 2023 03:58:10 -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 AD3BD152B; Mon, 4 Dec 2023 03:58:57 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC4533F5A1; Mon, 4 Dec 2023 03:58:08 -0800 (PST) Date: Mon, 4 Dec 2023 11:58:06 +0000 From: Sudeep Holla To: James Clark Cc: Anshuman Khandual , Sudeep Holla , linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com, 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 Subject: Re: [PATCH V2 6/7] coresight: stm: Move ACPI support from AMBA driver to platform driver Message-ID: References: <20231201062053.1268492-1-anshuman.khandual@arm.com> <20231201062053.1268492-7-anshuman.khandual@arm.com> <0adc3a16-0fc4-2a25-cd48-4667881b9490@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0adc3a16-0fc4-2a25-cd48-4667881b9490@arm.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:00:39 -0800 (PST) On Mon, Dec 04, 2023 at 10:23:49AM +0000, James Clark wrote: > > On 01/12/2023 06:20, Anshuman Khandual wrote: > > Add support for the stm devices in the platform driver, which can then be > > used on ACPI based platforms. This change would now allow runtime power > > management for ACPI based systems. The driver would try to enable the APB > > clock if available. > > > > Cc: Lorenzo Pieralisi > > Cc: Sudeep Holla > > Cc: Suzuki K Poulose > > Cc: Mike Leach > > Cc: James Clark > > Cc: Maxime Coquelin > > Cc: Alexandre Torgue > > Cc: linux-acpi@vger.kernel.org > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: linux-kernel@vger.kernel.org > > Cc: coresight@lists.linaro.org > > Cc: linux-stm32@st-md-mailman.stormreply.com > > Signed-off-by: Anshuman Khandual > > --- > [...] > > > > -module_amba_driver(stm_driver); > > +static int stm_platform_probe(struct platform_device *pdev) > > +{ > > + struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > + int ret = 0; > > + > > + pm_runtime_get_noresume(&pdev->dev); > > + pm_runtime_set_active(&pdev->dev); > > + pm_runtime_enable(&pdev->dev); > > + > > + ret = __stm_probe(&pdev->dev, res, NULL); > > Very minor nit, but this used to print this: > > coresight stm0: STM500 initialized > > And now it prints this: > > coresight stm0: (null) initialized > > (null) kind of makes it look a little bit like something has gone wrong. > Maybe we could just put "initialised" if you don't have a string from ACPI? Ah right, I too noticed this and forgot to mention. Just add a generic "STM" string for ACPI if we don't have a way to identify exact IP ? -- Regards, Sudeep