Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp986151yba; Mon, 1 Apr 2019 23:11:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj65evGGK5d/5I+ym6+t4S2HtaVrzB2tJfoUwj1S8rbzOnp5h8IDM/ihMFjfKtgf9pJoei X-Received: by 2002:aa7:8d01:: with SMTP id j1mr68103821pfe.122.1554185505339; Mon, 01 Apr 2019 23:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554185505; cv=none; d=google.com; s=arc-20160816; b=bwXUzYxsCV/3GIr60y7TVn1urF0YBCg+gRET6tQZBBbUqcWdfYXSatm9TSWwKs07iS uEyFs96ZafxH9gH8uX497DZyq0meBrpGjhaCqhiTlX4oZmIs4rJPwhXUlVNnuha1U6Lb 6ncc7b1RzB/wQoaaWXCE4q0aLuyUd0pwD9HRdTT/WqvrNc16Jc70JsywJ5PXkSyKyuVD I1pqxrMm7eaHIWEC+DA347nybkGK1Jnqs6WObBsyFwUcRcKc5WaMgZpWpCSUISVXfIJq BROUL0xjvtCos+YaiQ8E1F4CuODa3dSRRZKIuKJe/2Jq7xXj0dYs75x9nkySqENNQtsS 7QqQ== 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=osZ44LavLTn9GPTZVoEwduc8eg6V7OM/NU2HHLvS/Ts=; b=sOuraaJEZrzia7AT+/B7buxjBAymIEg8E2MAMjSRnmqeZFsWdtzarbagWiIajivNPU 6tvt8W5ExgTGuME8znO6FJCEbk+dAjR984eIoR88DLSR+Um+xnWP85s3j4s65JoOjzT0 EFkmp+O1RR99lzcEpc8fJCGIcdrBLWMdL1v4fRK6ZjhCB3VnV8y9YfIjDhawgniKZ5mx qolEtDBrdHoHFV1zN8SSo/zNIMKxg/TWZOsL0a4HvdMD/CGhOz3cxgzPuPuiZcCt3L/b j1GYazxC1Y7HbkSz6dtqg5WvSPjDztsz2w1WBCFlQOUl/EvAPK3Vb20dkS2ucxZI7fw5 IHMQ== 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 cn16si11004461plb.174.2019.04.01.23.11.29; Mon, 01 Apr 2019 23:11:45 -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; 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 S1726899AbfDBGJH (ORCPT + 99 others); Tue, 2 Apr 2019 02:09:07 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:44843 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbfDBGJG (ORCPT ); Tue, 2 Apr 2019 02:09:06 -0400 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id DC82B4000C; Tue, 2 Apr 2019 06:09:02 +0000 (UTC) Date: Tue, 2 Apr 2019 08:09:01 +0200 From: Maxime Ripard To: Samuel Holland Cc: Chen-Yu Tsai , Bin Liu , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-sunxi@googlegroups.com, stable@vger.kernel.org Subject: Re: [PATCH v2] soc: sunxi: Fix missing dependency on REGMAP_MMIO Message-ID: <20190402060901.rowpoenurzbolyby@flea> References: <20190401220331.44720-1-samuel@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190401220331.44720-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 On Mon, Apr 01, 2019 at 05:03:31PM -0500, 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. > > 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 Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com