Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2609115rdb; Mon, 4 Dec 2023 02:24:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IES/v0faHjghF5qNAoyO5U0ec7vtOiqHdgN/5BtgiI5kpFYuSWWBMEsWCxt2ZOuVN9ikUOH X-Received: by 2002:a17:902:c945:b0:1d0:b503:1e8e with SMTP id i5-20020a170902c94500b001d0b5031e8emr346598pla.109.1701685472611; Mon, 04 Dec 2023 02:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701685472; cv=none; d=google.com; s=arc-20160816; b=e5/+LT8KFQyXVJdMELDsPFX0mo+n4ZaJWokFkO1wUmFnrvWSzVKUAeC/px+PBZNujT wY9LLSYDcpxQ2usGCREoEdU0EYvnLDWFBtm9+sDcmGny0Xwb03bniUzStgXNvfVOMLKC fln2Bzn4WlM6GwvF/QTtgcsla4xg386+DYTU61gWtlAzUGaXbKqaD0IiZeXHjn5bwsi5 ePCXfK8Bbp9y0JrtP85VD43K8VRvGMiO4DVegs/NorHKXq4G6e6Qnk37wqljPYLOJ4eZ g4rqoTQ5SiDhYpIgpfSzvuHovOQIJ8EdhVboePnJTcERXtLLQUvbWcHCiHvp/ghgNGkg xZxQ== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=7hA1vG7DMdCAPBEQOhQjbAp+nlobhMlxzaFjKRg1Uwc=; fh=DNJVuSSgB2G6amXbP+7fIejaD/RGwDj3qwwUFzEyOr4=; b=EthjAvvYGhNgtSaXZ+pUP1i/bOrcIbJiHDyew9AKcchSFlDgNkl5IHFWhNQd0vJ38n 0eic7CagO2aCSUyKlbk76kZuUOT2ZQcs5C5V4OJsA/UcEv38mgpIfb9JIGXM70qpD+bS nEDcq4jqBTvRkagdY/M9ewot+XiI4ioTKvAie7bFjCDz4a9wi3fmNyOuC66nPn/uuCiX DaWQO14DDOkGVX5aw/rmLJ9INkKjF+uM0o0Y1qh0RPuvjVywitRr1e8HGfow7fQmPD5h oyFYoPT0MaG0ORaNolXZEWT5r98a6x4a8HKPsLIIr+jiwXgU6s1sFTAQBZrrE9P6/57N sMFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t23-20020a170902b21700b001cfc46abb07si2753093plr.128.2023.12.04.02.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 02:24:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id BA9A98044892; Mon, 4 Dec 2023 02:24:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343788AbjLDKYK (ORCPT + 99 others); Mon, 4 Dec 2023 05:24:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbjLDKYE (ORCPT ); Mon, 4 Dec 2023 05:24:04 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1377711A; Mon, 4 Dec 2023 02:23:51 -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 1C06E16F8; Mon, 4 Dec 2023 02:24:38 -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 5F1F73F6C4; Mon, 4 Dec 2023 02:23:49 -0800 (PST) Message-ID: <0adc3a16-0fc4-2a25-cd48-4667881b9490@arm.com> Date: Mon, 4 Dec 2023 10:23:49 +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 6/7] coresight: stm: Move ACPI support from AMBA driver to platform driver Content-Language: en-US To: Anshuman Khandual , linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Lorenzo Pieralisi , Sudeep Holla , 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-7-anshuman.khandual@arm.com> From: James Clark In-Reply-To: <20231201062053.1268492-7-anshuman.khandual@arm.com> 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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 02:24:30 -0800 (PST) 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?