Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp828396rdb; Thu, 30 Nov 2023 22:22:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqH5AkhB29lPTCIOiL7e3/p7tkZ0buFLd3UJzy4uu2XmSvtCVQiTrUOmb4EdSwZBnFPDxd X-Received: by 2002:a05:6358:914:b0:16d:fc9b:f6b7 with SMTP id r20-20020a056358091400b0016dfc9bf6b7mr31089270rwi.5.1701411760876; Thu, 30 Nov 2023 22:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701411760; cv=none; d=google.com; s=arc-20160816; b=jbVDKWwq2s67sjfx/QA6Hp6yLxfBsBUaHeuZadIn4c6Bl+gMdVqZqVKXWbgx45kD7q jRIvOXHZtJnbdZxwCx7in7xL5+5l232AF/65lOhTxzaWGLyHUfI46bv9iXKejC/B0d5D QjBEpL+xtLR3NWkwSbdmvePIzf09KBz20dSmjzb7vV/6zGwJqvS98ZqdJl6z5LesCdpv 0C0CZDFNP3hiwAzjWzsQdz3T7Pbtpo4aayy0fTlGDY3asniwKtXiP5CqdcCAsAfCOO2R zVVtmeV84ctjQvV4Ll571jHIdk0M9zLBrmtb4IIprsMoI5ROmp4NU37/n9qb5299AFmm ZDfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rkHlZq+kSeGUMDDncMe3nRQkHXerdx5ddUGCOmgl/xg=; fh=78ZiYAsMqkMiOIWlhjjSgWn2SS9khyeUqw/r/4rUn1M=; b=zgC3gMNCi7EgGeGEGZ+ATZXfgPMwTws8gcK5FOhU26ZBUoBG9KJqJVOIH1SU/RGjo4 RZ/AJLf9HoXZNKX6+u4+Z6JO6AKpO3mMacwgTuCi2rVzqRdmGcZUVOIG/hYoC3UtQ9sK K7UN1oR6ajT6cRdJQNv4yN1RPO2/zKgIJsz/haekf16buHuJLupqz58eHdfVMmA0Cha3 0RyG4f0Ydk1dGuRpwqEsGqriadzQ9jZPVkgUoCkat55n39jx9fw0rp7W45MAiMps1nMQ KB4983pZZzBrO0CyKuC1iVxD3kQ08tXBowB0PHyae5kVcNQ3PbnhEWQTqTWDHDz3bVIK IjLA== 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 hq23-20020a056a00681700b006cdd218a8dasi2663202pfb.394.2023.11.30.22.22.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 22:22:40 -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 1F87980A7F1D; Thu, 30 Nov 2023 22:21:32 -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 S229505AbjLAGVG (ORCPT + 99 others); Fri, 1 Dec 2023 01:21:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231723AbjLAGVD (ORCPT ); Fri, 1 Dec 2023 01:21:03 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 49749171B; Thu, 30 Nov 2023 22:21:08 -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 8DDF11042; Thu, 30 Nov 2023 22:21:54 -0800 (PST) Received: from a077893.blr.arm.com (a077893.blr.arm.com [10.162.41.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CE4AF3F73F; Thu, 30 Nov 2023 22:21:03 -0800 (PST) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , Lorenzo Pieralisi , Sudeep Holla , Mike Leach , James Clark , 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: [PATCH V2 0/7] coresight: Move remaining AMBA ACPI devices into platform driver Date: Fri, 1 Dec 2023 11:50:46 +0530 Message-Id: <20231201062053.1268492-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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]); Thu, 30 Nov 2023 22:21:32 -0800 (PST) This moves remaining AMBA ACPI devices into respective platform drivers for enabling ACPI based power management support. This series applies on latest coresight/next branch. This series has been built, and boot tested on a DT based coresight platform. Although this still requires some more testing on ACPI based coresight platforms. https://git.gitlab.arm.com/linux-arm/linux-anshuman.git (amba_other_acpi_migration_v2) 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 Changes in V2: - Dropped redundant devm_ioremap_resource() hunk from tmc_platform_probe() - Defined coresight_[init|remove]_driver() for both AMBA/platform drivers - Changed catu, tmc, tpiu, stm and debug coresight drivers to use the new helpers avoiding build issues arising from module_amba_driver(), and module_platform_driver() being on the same file Changes in V1: https://lore.kernel.org/all/20231027072943.3418997-1-anshuman.khandual@arm.com/ - Replaced all IS_ERR() instances with IS_ERR_OR_NULL() as per Suzuki Changes in RFC: https://lore.kernel.org/all/20230921042040.1334641-1-anshuman.khandual@arm.com/ Anshuman Khandual (7): coresight: replicator: Move ACPI support from AMBA driver to platform driver coresight: funnel: Move ACPI support from AMBA driver to platform driver coresight: catu: Move ACPI support from AMBA driver to platform driver coresight: tpiu: Move ACPI support from AMBA driver to platform driver coresight: tmc: Move ACPI support from AMBA driver to platform driver coresight: stm: Move ACPI support from AMBA driver to platform driver coresight: debug: Move ACPI support from AMBA driver to platform driver drivers/acpi/arm64/amba.c | 8 - drivers/hwtracing/coresight/coresight-catu.c | 130 +++++++++++++--- drivers/hwtracing/coresight/coresight-catu.h | 1 + drivers/hwtracing/coresight/coresight-core.c | 29 ++++ .../hwtracing/coresight/coresight-cpu-debug.c | 141 ++++++++++++++++-- .../hwtracing/coresight/coresight-funnel.c | 49 +++--- .../coresight/coresight-replicator.c | 44 +++--- drivers/hwtracing/coresight/coresight-stm.c | 91 +++++++++-- .../hwtracing/coresight/coresight-tmc-core.c | 130 ++++++++++++++-- drivers/hwtracing/coresight/coresight-tmc.h | 1 + drivers/hwtracing/coresight/coresight-tpiu.c | 87 ++++++++++- include/linux/coresight.h | 7 + 12 files changed, 608 insertions(+), 110 deletions(-) -- 2.25.1