Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1326881yba; Thu, 4 Apr 2019 08:36:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4vs/oH7dgVL74H/+p/DXPNqhuWdlYbKH2f6zK5JcEqEZjrkRGUPegTBb2hM1Xzky8pLHS X-Received: by 2002:a17:902:868e:: with SMTP id g14mr7102630plo.183.1554392170427; Thu, 04 Apr 2019 08:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554392170; cv=none; d=google.com; s=arc-20160816; b=0AV3fmiAaj19Y2j/7ZQ1M570Qe1h/zGMAQzJo9cCQPymZ8ujoGs5blT6ooJMt9NKM1 LBRpDcdzfP3Q90LrWMEret2egrsReS4tqCYa4pcgfOpQr9Ehc1Xydh/vE0vWE0zEEh+H p5o4GjqC4pWWlvggZ3YPe0LjgAPF6kKmQnO2/HJ9oylc3o/2tuDDPJtrn7s96A53Q+/k v0iVK2xs0Ks//S++e0c6qVv32uW1767qVq7ntHpzAYkCBUmV9ECleRuQKvdod4qu6TG+ k1tzmGUDOdHb3oOphFIJPOAXWVJcCOdT2TG1WY8wY/Algaafh0WN9x3WY0PXISmcFImc MlnA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=w0Cz1srKPgpcYauwStaJmmGNJb40SBPlFtN5GjjVJCI=; b=VqAsdndsiqGnqCwtImw8+Kw1vehwN1W5BGpmviE0Vexo75KiGucpc5CErkHk6jd/mk aMeguihFLR8MM7RbgOPAowqP6+w+KAPVwOY6HfiCiFJL6QP9fAb3QeDhn/xciu3AL+K4 qnpZxzmrGteGW+faoBLozq2qoDZePxmuvTwbI2upJRjSCRRYMi0qBLsrK3hiY6rRcZ3D Xv9hPClc/XT+maGWCD8IQrjAipZSU6lZQcCTtR7miGuax+HCBPJQblXTQ5LjuV6ds1S4 O3aAii876FVTiZ9sqLhCiiEYY/J9f1KFuqpf+hwSK9RB7QRynwvZIMK7MpL0LvCVM/w0 f2Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WNMOlkhx; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cv9si17313840plb.371.2019.04.04.08.35.54; Thu, 04 Apr 2019 08:36:10 -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=@ti.com header.s=ti-com-17Q1 header.b=WNMOlkhx; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728718AbfDDPfU (ORCPT + 99 others); Thu, 4 Apr 2019 11:35:20 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:37740 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfDDPfT (ORCPT ); Thu, 4 Apr 2019 11:35:19 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x34FZ0em078687; Thu, 4 Apr 2019 10:35:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554392100; bh=w0Cz1srKPgpcYauwStaJmmGNJb40SBPlFtN5GjjVJCI=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=WNMOlkhx0Mtsi1wHFbmp1AEeh2Ak5jpNH8/35Wo0K4i8T8NgqaB+pr3tTwkGfUDx3 XfhocrtaQh0q63D1e7+pZuLiAbnH1m1jTsXoWYxzdP5n83ZRfci5p4+rrsFHK1zqEQ A50o7FtbEiJa1Crr+eb0lMs8IU4U9bHdGx7iLZS4= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x34FZ05A019370 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 4 Apr 2019 10:35:00 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 4 Apr 2019 10:34:59 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 4 Apr 2019 10:34:59 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x34FYx9o044439; Thu, 4 Apr 2019 10:34:59 -0500 Date: Thu, 4 Apr 2019 10:34:59 -0500 From: Bin Liu To: Maxime Ripard CC: Samuel Holland , Chen-Yu Tsai , Greg Kroah-Hartman , , , , , Subject: Re: [PATCH v2] soc: sunxi: Fix missing dependency on REGMAP_MMIO Message-ID: <20190404153459.GT25852@uda0271908> Mail-Followup-To: Bin Liu , Maxime Ripard , Samuel Holland , Chen-Yu Tsai , 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 References: <20190401220331.44720-1-samuel@sholland.org> <20190402060901.rowpoenurzbolyby@flea> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190402060901.rowpoenurzbolyby@flea> User-Agent: Mutt/1.5.21 (2010-09-15) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 02, 2019 at 08:09:01AM +0200, Maxime Ripard wrote: > 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 The patch is applied. Thanks, -Bin.