Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp539098imb; Fri, 1 Mar 2019 07:22:25 -0800 (PST) X-Google-Smtp-Source: APXvYqz4mfwn2eExQ1wob+F/ncQV5IqtlQtFuSXOH+7i5fVwxOd24LMlIVY80t47MJVyYj0+z+BY X-Received: by 2002:a17:902:581:: with SMTP id f1mr6071376plf.210.1551453745797; Fri, 01 Mar 2019 07:22:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551453745; cv=none; d=google.com; s=arc-20160816; b=IeQ32GUfEucmWIWl6+tfqU17/eGyJPehQflynmPIJdtQs3G6rfIdnA1gk2PB99KayL j5H08OnZva+6fhAnx8wt1hycm8pXzbUGxg0+r5qEghvFztdFIB8+6+893QO+g8jPP4OP O/o933BuI8LUshOP43ltEv8UxlxndIapl3p/Ga8xqgj+TwDDIgNe6rDkt09zSX6EayDU wEsMr4K7PHqKg43wLoSSYZRvZgj5hWMqbn1zDY0oKjCztOPYTQ6cVX3nZloF8A81VJ8a KqzVclfQV5JbcyxBZIQWRg3nRUOksssleTWjkPdj9bTegyNh+3lRkLfEl8ujY1s0mif2 SbOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dAF+mrE0AuT9aE988uNYZqtu4kCEuV18P7VOmmMwE9U=; b=tjrwyCrg2VGzHMOA4/SbFBP81Ir3MMV9dSMzJL+KTYkLgo6669TZyct4PxdJAmYfcN JRxygu20o1fMvOYvld3iBvihiHgJSu+6iS8cFLYw+WfXewDsGXTzfZ890R/Y/899eX5B BMWsx2TUCSIVbIw9KUwgOMtIUhpurNQ7rGKRbtq1KtjlfYF6Ae7slgYOVmO6aVM2EfG9 eKlTQ9ZwwlyhevVGdHpvb+IrM+hvU2RJWpHPzdDLiRlqDKUZO5ibHpaCjlBIGLLJ63Eg HhAibnU9LDcbATbOj/rpyk741qxPC8qIn1XA2rsD0yTizMiMMHDOSj7SOGYxsQROK6JQ 3Upw== ARC-Authentication-Results: i=1; mx.google.com; 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 m26si21267442pfi.247.2019.03.01.07.22.09; Fri, 01 Mar 2019 07:22:25 -0800 (PST) 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; 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 S2388735AbfCAOnw (ORCPT + 99 others); Fri, 1 Mar 2019 09:43:52 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:52959 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727951AbfCAOnw (ORCPT ); Fri, 1 Mar 2019 09:43:52 -0500 X-Originating-IP: 90.88.147.150 Received: from localhost (aaubervilliers-681-1-27-150.w90-88.abo.wanadoo.fr [90.88.147.150]) (Authenticated sender: maxime.ripard@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id C944240011; Fri, 1 Mar 2019 14:43:48 +0000 (UTC) Date: Fri, 1 Mar 2019 15:43:48 +0100 From: Maxime Ripard To: Samuel Holland Cc: Chen-Yu Tsai , Bin Liu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH] soc: sunxi: Fix missing dependency on REGMAP_MMIO Message-ID: <20190301144348.titicfsmukd3kogj@flea> References: <20190301022044.24431-1-samuel@sholland.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ycvxxw73xemms6qw" Content-Disposition: inline In-Reply-To: <20190301022044.24431-1-samuel@sholland.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ycvxxw73xemms6qw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 28, 2019 at 08:20:44PM -0600, Samuel Holland wrote: > 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. >=20 > This creates the following dependency loop: >=20 > drivers/of/Kconfig:68: symbol OF_IRQ depends on IRQ_DOMA= IN > 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 visibl= e 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 >=20 > 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. >=20 > Signed-off-by: Samuel Holland I assume it would go through the USB tree. Acked-by: Maxime Ripard Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ycvxxw73xemms6qw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXHlFJAAKCRDj7w1vZxhR xVjGAP94coZdopPFdqzQRv+JETzy+KzY1RokBAcmEDJWBUTH8wEAmdE+nzNgGH4d sqt3arc0yBSd9m0BqlKM2bC48M2fBgo= =O6Rf -----END PGP SIGNATURE----- --ycvxxw73xemms6qw--