Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2606750rdb; Wed, 15 Nov 2023 05:54:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDK8k9xek4TvDt24HxyVzlKj8u5focWI2QP3u9JB6KhlXIKMi9QKp4/khHD0iLSDNInSt8 X-Received: by 2002:a05:6808:6541:b0:3b6:dc6f:2741 with SMTP id fn1-20020a056808654100b003b6dc6f2741mr14674364oib.19.1700056469050; Wed, 15 Nov 2023 05:54:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700056469; cv=none; d=google.com; s=arc-20160816; b=zMp5YpHn/wpUsW51kgDH6lCTgXo+jIlxvYZdn8GBygZd5PGUM0vTn3sdU+8man4vxI EZrMfADw/tP3k7WkIeCnlI2LkNCRM2pJxwPrkkQqhrba/n1GE1O20mO3d4LBB+C+H2Xs TgJL3TNHFMvy0qCTX1/1RZ+QuwWSQCu/b95s4G3ZOEyi7jNztwT1/N4BSumkmImhHoWR qbTMcHsa03KC+fUp6cZ1lQbLSXZJGu2GI3rORaGS+9TqLsS6OkUQlGUIPT51su9leYSV fCqUzd50EB9sFhl2pZVmXVJHQ1FrI2oFvrai/aq4HX6CRUNdGQ4J30Buwe2Hsp240Wv5 kbbA== 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=IDAX9s9rlJmcCD49/wtThAam5SjDKvOuho3vih5vY8U=; fh=DNJVuSSgB2G6amXbP+7fIejaD/RGwDj3qwwUFzEyOr4=; b=kRRx+q/iQogZVyZv4CDGXTkRwfAZVXBYbDK9Lb3BBfy6Un5e+VLZeBbVrN1Gm+URFi 9i5F4GNRF+1qcmgRrYDvAzuUGLWEesbo2Du+H35R9sdu4LByFjT0ADZhniULT2y+xTNm t/qEbJVHOlmLrjhSJduXhAUPTK2FyghXNB3bP1oncbJ22VKU5mAfnR6z0yXEXTP6wGy/ sSRF4V8DnWZsK6QWuxYVOzHIuf9XZFrUrHvjsisQsY/o4Jxn2hmAAFAqW+E7AIFs7VGw Sdf+FAjTOFvHk0fP8kLqTLUp5yNTPSgYPTtRJBVn3tQ6qgn79wJmY3Z4vRG0/wPHzdHS IaVg== 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:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x188-20020a6363c5000000b0054fd947f66dsi9840908pgb.210.2023.11.15.05.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 05:54:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id A19F180E4B00; Wed, 15 Nov 2023 05:54:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234147AbjKONyG (ORCPT + 99 others); Wed, 15 Nov 2023 08:54:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbjKONyF (ORCPT ); Wed, 15 Nov 2023 08:54:05 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B231EAF; Wed, 15 Nov 2023 05:54:02 -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 12847DA7; Wed, 15 Nov 2023 05:54:48 -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 EBC473F641; Wed, 15 Nov 2023 05:54:00 -0800 (PST) Message-ID: <92d6a66d-3270-3378-2ab9-9214c004d5c7@arm.com> Date: Wed, 15 Nov 2023 13:53:59 +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 4/7] coresight: tpiu: 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: <20231027072943.3418997-1-anshuman.khandual@arm.com> <20231027072943.3418997-5-anshuman.khandual@arm.com> From: James Clark In-Reply-To: <20231027072943.3418997-5-anshuman.khandual@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 15 Nov 2023 05:54:19 -0800 (PST) On 27/10/2023 08:29, Anshuman Khandual wrote: > Add support for the tpiu device 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. > [...] > +#ifdef CONFIG_ACPI > +static const struct acpi_device_id tpiu_acpi_ids[] = { > + {"ARMHC979", 0}, /* ARM CoreSight TPIU */ > + {} > +}; > +MODULE_DEVICE_TABLE(acpi, tpiu_acpi_ids); > +#endif > + > +static struct platform_driver tpiu_platform_driver = { > + .probe = tpiu_platform_probe, > + .remove = tpiu_platform_remove, > + .driver = { > + .name = "coresight-tpiu-platform", > + .acpi_match_table = ACPI_PTR(tpiu_acpi_ids), > + .suppress_bind_attrs = true, > + .pm = &tpiu_dev_pm_ops, > + }, > +}; > +module_platform_driver(tpiu_platform_driver); > + Is there a special build config where this works? I get an error here because module_platform_driver() redefines things that are in module_amba_driver() which is defined above: module_amba_driver(tpiu_driver); This isn't a W=1 build or anything, just a normal one. And it applies to most of the patches in this set.