From patchwork Mon Nov 14 07:23:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Josh Triplett X-Patchwork-Id: 13041902 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82F0EC433FE for ; Mon, 14 Nov 2022 07:23:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235789AbiKNHXf (ORCPT ); Mon, 14 Nov 2022 02:23:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235669AbiKNHXe (ORCPT ); Mon, 14 Nov 2022 02:23:34 -0500 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3067521B0; Sun, 13 Nov 2022 23:23:31 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6A29232007E8; Mon, 14 Nov 2022 02:23:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 14 Nov 2022 02:23:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= joshtriplett.org; h=cc:cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to; s=fm3; t=1668410608; x= 1668497008; bh=acFlUqy1r7UweKUoyspc24X/PZGFahiBEvTlWYrEsLU=; b=1 q79ZMFODftvgktjeiPSdqZX97o1DEOZToYjhiPVli2bYU0kZWvVyMLsqnhqdXCvz ETNdJoy0gcxvaOefLdIPt4h4ObWA3JZ3SIdnxm+0svw9gfXbZxf+tjqZLO/rj+US BvPTHJBxe2tXj8X+O0cD0mhjUVUOQkvdwy1g2DKsc7YOuCrq18NRb0UvG5DpL8Oz 2dWSC0MquBfbVPgW8cTF73OgYq/2E4wpltvi+U18DurU4UfPolyQX+BraBlF1C+o YCaH8WzCl3Dp/v35PZ5oaxm3zesalNOWC2scNXEqu7gmb8lNYuoZhsbkte0ypt// TcxjnkLexkjOrWcQ9Giyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1668410608; x=1668497008; bh=acFlUqy1r7Uwe KUoyspc24X/PZGFahiBEvTlWYrEsLU=; b=Py6mVop4VcvrNQsZtyEfRYZYQTA5I NA0jfj/X3jZ20IT6ZikYqwvwihey+XAfLCBXS4KoxzTDF1E3MHeyUHA1wdM43Sfm TPmHxuPjIxr6Zoi6jV7IJPB9aEcGfjwjmpKSbWve51Fa3YEpa5jqjQS7nW745YlV suxjHWFZc9LlfrWdgMnu2bjYJQgysHNlmtsQNLTL1igyHneUt8799n13NJt3m9uS l5Qg+fFFIHbCrIthz2NEwVbHfmPdShZL1tC/pIQdDZwc2yVekMxXj0q5QjzVDpGJ 6J14duftNOj2L1fs0+8jamWcy32w2jgStGoMhYYPcEO38ldKQkeIiJfTA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgedugddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgsehtkeertddttdejnecuhfhrohhmpeflohhshhcu vfhrihhplhgvthhtuceojhhoshhhsehjohhshhhtrhhiphhlvghtthdrohhrgheqnecugg ftrfgrthhtvghrnhepuddvgfeliedvvdekffehhfevjeefhedtjeduveekieetvdefheel udettedtudfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhoshhhsehjohhshhhtrhhiphhlvghtthdrohhrgh X-ME-Proxy: Feedback-ID: i83e94755:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Nov 2022 02:23:27 -0500 (EST) Date: Sun, 13 Nov 2022 23:23:26 -0800 From: Josh Triplett To: Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?q?Wilczy=C5=84ski?= , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: kirin: select REGMAP and REGMAP_MMIO Message-ID: <04636141da1d6d592174eefb56760511468d035d.1668410580.git.josh@joshtriplett.org> MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org pcie-kirin uses regmaps, and needs to pull them in; otherwise, with CONFIG_PCIE_KIRIN=y and without CONFIG_REGMAP: drivers/pci/controller/dwc/pcie-kirin.c:359:21: error: variable ‘pcie_kirin_regmap_conf’ has initializer but incomplete type 359 | static const struct regmap_config pcie_kirin_regmap_conf = { Similarly, without CONFIG_REGMAP_MMIO, pcie-kirin produces a linker failure looking for __devm_regmap_init_mmio_clk. Signed-off-by: Josh Triplett --- drivers/pci/controller/dwc/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig index 62ce3abf0f19..5412938c2cef 100644 --- a/drivers/pci/controller/dwc/Kconfig +++ b/drivers/pci/controller/dwc/Kconfig @@ -277,6 +277,8 @@ config PCIE_KIRIN tristate "HiSilicon Kirin series SoCs PCIe controllers" depends on PCI_MSI_IRQ_DOMAIN select PCIE_DW_HOST + select REGMAP + select REGMAP_MMIO help Say Y here if you want PCIe controller support on HiSilicon Kirin series SoCs.