Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp705684yba; Mon, 1 Apr 2019 15:14:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkslwtAKNnq/okrwYPvynWw4skwJ/beGWGRN0NiTFig9CM7vgdmWecJ5xOHkRB9gBm+iZt X-Received: by 2002:a63:ac12:: with SMTP id v18mr61976815pge.111.1554156848018; Mon, 01 Apr 2019 15:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554156848; cv=none; d=google.com; s=arc-20160816; b=BsIUS/BfudQRO4RlLyjDSNxvcIET3U9LBZEaewkawXSDEDNBXutHiXRQS/0M7yY/Z6 6P8ZPN0lZioey2ePEbvV9dSpnvUZ9vinrtwiNQ3hw/nBdyD0d5N9GqdZ3mE7ZZiQsBSV FEVhEzx6huaNYlK3QsC158PpzFsXXAdIwbhmCt9UyPjSmt0EnrOaah8+n+iLHTlmPagc R2yc7weF+8A44TVQRPW4roZGHsvNP4OTXFZ4NJbIQnQV89JSAJy+6hVT3uIQ6PjaVsZ5 kyCq5GWa2wgFKLH1zmt7IGX6w6Yg725rptB1YtvPASm0MV4U2xYoWjnUOYz0/C0XGMke nDkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=BXEr0btx0pVKqiQhP0RxJgKwnBvm2dhUTHHFjil8Ugk=; b=X1obTBdB/CEmlPJW6Ia6pPtBtqYckoQJ3jyh8hYoKyYBhrTETbE8dn5q7i8+/Ssm6k cXXRp4+QXfGJi+NktQcU/aOu2x3WPOnHYfr5lkvUlC3gF2ZmXEIL8XqkUk9lF0c1vVsI apIvE6G9NBfacLVwnBvxomMuFMOAY6mow6cB/k8b7x407rEKpdWwOQWW6uc0NHRGCW1n z3HzoTpIfaTZUstkk/CSmOh753ylSJTH/DHPBbQIe7BOiBnafhpC2h1AzyJvgGwtKCxG FV6hAZgHgpKj7/YZiWCwEqvzs6aIKWU0KVqS8eZ5q2N0kb0B/zvoj+0txzQMaPXZCWtT KFXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="naX/JBrr"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=GA9p1tUE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si726618plr.301.2019.04.01.15.13.52; Mon, 01 Apr 2019 15:14:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b="naX/JBrr"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=GA9p1tUE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726534AbfDAWLi (ORCPT + 99 others); Mon, 1 Apr 2019 18:11:38 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34593 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbfDAWLi (ORCPT ); Mon, 1 Apr 2019 18:11:38 -0400 X-Greylist: delayed 483 seconds by postgrey-1.27 at vger.kernel.org; Mon, 01 Apr 2019 18:11:37 EDT Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2CD43221D1; Mon, 1 Apr 2019 18:03:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 01 Apr 2019 18:03:34 -0400 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=BXEr0btx0pVKqiQhP0RxJgKwnB vm2dhUTHHFjil8Ugk=; b=naX/JBrrF1qRjqQR0vjrbzQUZErdqZrymCXE4vaMVF ydOE1YgrxvWdsms/5oqfcMRXfHda4XyV0GVWdDmGvgXudlLIYHPYuGsqPstKnOoM g5OztS0dvZfZZkMD/XOYzSICwDBgncfbQy6uF8odUfoEaW4AK5m4BqZRO63CLnz/ 9AyJszwPoV2sl7ysP3+l04r3LEQKkYyEvOgsl+oWfmuDQVBrOqI2w6C+58Jw8Wgq 2w/TAPmjbCc6tDRRTTZND4i0xCgtf93ESMthXHkpk8c6mHCMcMTjnhpkO1eo9hxI TwUA1B6JriL44iuLqwsfpyXih4vEXoFy7CNe1QQVBNlw== 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=BXEr0btx0pVKqiQhP 0RxJgKwnBvm2dhUTHHFjil8Ugk=; b=GA9p1tUEPQ8WR4/OHEa8p8VTcYI1D6v2y NXvvITXo7gIutu+2jyMV5zmgWE/RPyBcvWnWcaWQO7vWdab4z3tWN+lypQPer/Co beYGGmx1LK7x/l1IyI+dU5aFGyxWMSEvNSovKHeJyU7SsROQZw/svWvUld0TO/xv rnOhDb9KBBiY19A7ad1/WuozwHvvqpsWiEewt5ENqtLoU4PYDyMFg5vyMJOIfyfS Ln01jI0x0UzaFioPeWuaY7yr4IzF160HAu+gJwWJv8E0nyOG9Ltp7dtJ4azlYGJD hooQWnepslyczTq9ciTj10l6VpvncjhIGQq3SWo56IWSyZxRyS3og== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrleehgddtgecutefuodetggdotefrodftvf 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 2F42D10311; Mon, 1 Apr 2019 18:03:32 -0400 (EDT) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Bin Liu Cc: Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland , stable@vger.kernel.org Subject: [PATCH v2] soc: sunxi: Fix missing dependency on REGMAP_MMIO Date: Mon, 1 Apr 2019 17:03:31 -0500 Message-Id: <20190401220331.44720-1-samuel@sholland.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: # 4.19 Fixes: 5828729bebbb ("soc: sunxi: export a regmap for EMAC clock reg on A64") Signed-off-by: Samuel Holland --- changes from v1: - add stable@ and Fixes: tag --- 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 -- 2.21.0