From patchwork Fri Mar 1 02:20:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 10834355 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53AE617E9 for ; Fri, 1 Mar 2019 02:21:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EBD42F931 for ; Fri, 1 Mar 2019 02:21:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32ECE2F935; Fri, 1 Mar 2019 02:21:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D6A592F931 for ; Fri, 1 Mar 2019 02:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=aoJ5h9fe2XhRYIsDYfRqmgmLYbQURo+EX8s27BZboPk=; b=nb9Ant1f6VJQTO kes931beRKHZl2cQ+ACPwhYphIvwFLtO81nRZyTX6Nu6DkzYcwZdOmOu7VGr2CHu0JArpBOCL6Zhz YsTN5N6cpcR8rN1/g+/zdVi7HKFnS0S/sP3OvDNN3OYQDmDLbn5eTo1o+xxQjjLFDhQgfmozgWf30 BYG2SemiBxZfcf3CbxcRgNmDggv2SJ8q9LmPd2+GSCpz8Ag8mYMTmfXuE+jsJW+3jeWXB3tzdna4u ycRX+VS6cneBIl5xSUczGQwJYsdRwUSIKkkH7/d4FwfCwQIPFg40wkAQt5sqXR2nL/mshpp9KSRqp eHQenIO2fgaoEE2MDQBQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzXnG-0005LT-DR; Fri, 01 Mar 2019 02:20:58 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzXnC-0005Jm-5M for linux-arm-kernel@lists.infradead.org; Fri, 01 Mar 2019 02:20:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0A27523209; Thu, 28 Feb 2019 21:20:48 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 28 Feb 2019 21:20:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=4OL5qrvlzxo/cQgz0/lXsuyWQ5 pSfUCyDnpxpoIrC18=; b=l4m+kGEhj3jUtGekVhStjNdEBe12PwM0hMZNXvvkkr iInu7M7IqwJ0pGrmVmbjvCW1yfyyrYPyvNykDkCgczvYtx3mi0kE1MomDBYyfRvE YhVyvHs+LrBF3AcICPW/7GJBg1ssJxABvKnwoMt3U4SKSK/VgYQm72d5gVjkgSLA mKLHH5xoIWkV8rxtl/sk3ZCSyom3IfKDBv5vcgrDxj9dd9/hbTAOm0wl+iXHXg8Z TDqyRWtDP0UjaVWH4QlIUzPaQXf3LBNlttOO3WilTY0GcTCh+C81O07YfiqZxgBi tvmQR6Byk9VtFHTwfr+AwhMafJr7oF0Me2mQPH54PM1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=4OL5qrvlzxo/cQgz0 /lXsuyWQ5pSfUCyDnpxpoIrC18=; b=OsXmAoicAk9HgjuTttkJweXRp+YfzzvE5 5cBwuNE8jttyP7jsqMYm6AmztRWB0h2eSPbb67aVOeEoeKXHCeQ9PMBUng7yAtzG e/zbLcQcJ1gzipeprGZRwEMhmTc7+HxY+ObgduRMlrLzaBa3kMkhbu0TExW2Qg4F ZwqULEljmhI8GIHx1GH9U8ZRhCVHrDcS2td4qY9ONv1QMM5/JttN0rBvBGlAyYNs kgSEFeirwKg8jW9RoLHCVy+s3p7fxQxQVin2D+N74nkfHskab22daHwiqNpeZ9Bj gCN4WlanUoZrnHcdb84bpHY7CGuhZkWC1YETtlraqG/9BjXrt4R1A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrvdeggdegkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghlucfj ohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecukfhppeejtd drudefhedrudegkedrudehudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghl sehshhholhhlrghnugdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id C5E07E40C1; Thu, 28 Feb 2019 21:20:44 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Bin Liu Subject: [PATCH] soc: sunxi: Fix missing dependency on REGMAP_MMIO Date: Thu, 28 Feb 2019 20:20:44 -0600 Message-Id: <20190301022044.24431-1-samuel@sholland.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190228_182054_504796_95F076B4 X-CRM114-Status: GOOD ( 11.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-sunxi@googlegroups.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When enabling ARCH_SUNXI from allnoconfig, SUNXI_SRAM is enabled, but not REGMAP_MMIO, so the kernel fails to link with an undefined reference to __devm_regmap_init_mmio_clk. Select REGMAP_MMIO, as suggested in drivers/base/regmap/Kconfig. This creates the following dependency loop: drivers/of/Kconfig:68: symbol OF_IRQ depends on IRQ_DOMAIN kernel/irq/Kconfig:63: symbol IRQ_DOMAIN is selected by REGMAP drivers/base/regmap/Kconfig:7: symbol REGMAP default is visible depending on REGMAP_MMIO drivers/base/regmap/Kconfig:39: symbol REGMAP_MMIO is selected by SUNXI_SRAM drivers/soc/sunxi/Kconfig:4: symbol SUNXI_SRAM is selected by USB_MUSB_SUNXI drivers/usb/musb/Kconfig:63: symbol USB_MUSB_SUNXI depends on GENERIC_PHY drivers/phy/Kconfig:7: symbol GENERIC_PHY is selected by PHY_BCM_NS_USB3 drivers/phy/broadcom/Kconfig:29: symbol PHY_BCM_NS_USB3 depends on MDIO_BUS drivers/net/phy/Kconfig:12: symbol MDIO_BUS default is visible depending on PHYLIB drivers/net/phy/Kconfig:181: symbol PHYLIB is selected by ARC_EMAC_CORE drivers/net/ethernet/arc/Kconfig:18: symbol ARC_EMAC_CORE is selected by ARC_EMAC drivers/net/ethernet/arc/Kconfig:24: symbol ARC_EMAC depends on OF_IRQ To fix the circular dependency, make USB_MUSB_SUNXI select GENERIC_PHY instead of depending on it. This matches the use of GENERIC_PHY by all but two other drivers. Signed-off-by: Samuel Holland Acked-by: Maxime Ripard --- drivers/soc/sunxi/Kconfig | 1 + drivers/usb/musb/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/sunxi/Kconfig b/drivers/soc/sunxi/Kconfig index 353b07e40176..e84eb4e59f58 100644 --- a/drivers/soc/sunxi/Kconfig +++ b/drivers/soc/sunxi/Kconfig @@ -4,6 +4,7 @@ config SUNXI_SRAM bool default ARCH_SUNXI + select REGMAP_MMIO help Say y here to enable the SRAM controller support. This device is responsible on mapping the SRAM in the sunXi SoCs diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index ad08895e78f9..c3dae7d5cb6e 100644 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig @@ -66,7 +66,7 @@ config USB_MUSB_SUNXI depends on NOP_USB_XCEIV depends on PHY_SUN4I_USB depends on EXTCON - depends on GENERIC_PHY + select GENERIC_PHY select SUNXI_SRAM config USB_MUSB_DAVINCI