Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp397373yba; Mon, 1 Apr 2019 08:31:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPOZhhJTpcDuTGqF+mpXbZOHwr+zJTiVIfdrqr/utwkjflZbVL+UkCRho1TxFkDOzy31Yr X-Received: by 2002:a17:902:7794:: with SMTP id o20mr18096391pll.189.1554132672401; Mon, 01 Apr 2019 08:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554132672; cv=none; d=google.com; s=arc-20160816; b=rFZAw1ttLjHClqk5E4HtAMOgA7t1DmBHsCf7PK07yosJk8J9LKrL6D6REYUBJS+bKX Zm3sFKLsgH5wlfa0MttqhlcYTNy0ZnyobnNLsOiZkQP9Ily3iMiz2KzM2YXM5nFQ4hNC s/5y2xHOaw+IXETYBM3tIXTrI0TfuUs7XlhpF8P63bY0hXKKztsmgN5S1w74646MKChq ioO63qAb0JIOpQVenxwfNPIJNlaiuVYKA9YXh5lSy/hcbOzmKCCb0G3B2i1zW/u6UswH yx3d1gsqoGflB7P8jncAa27CDe7dqgYO13K9v31CQZAHUyUMsdd5pjLI5lsPZ/wnSQDW 0jZw== 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=xHXocBsylgu4R1PHnwISrYdfCvRaWwwUcAC4RlxUcFg=; b=ZonzhdWUbf6l9iIWIjiFogdJnOqOya5roWgRgszwqPzeZqpv9OsrHpUoKBQbDNKitT jpRNeaydYRLar2KJCIEoAMU+H9PVisJygMIT3zw8jXaM0dw25RrspAOh0+nOUF/YZIUc mzn2MF86XdmZ/vIZMGvm/of3yIQomuhMh7rPzMBsa0akCiSqoPyOx9IrqAaHqQY7jE08 iSEfi9xHWIoPeNRGog08SrNDtZg4lGZpdPs0wYyJdV3c2IfuolbR5FrbwPHg8SzoYzuc Cbt+FUvKAXBaQeA7+TDr9R6VOUVk2f2r57j7vMooEDNPkrNkg3/EB9FFrDEUmgKe2WhE w8wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Y8yRZQ3k; 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 u79si4866163pfa.6.2019.04.01.08.30.56; Mon, 01 Apr 2019 08:31:12 -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=Y8yRZQ3k; 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 S1728007AbfDAPaJ (ORCPT + 99 others); Mon, 1 Apr 2019 11:30:09 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:33142 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726775AbfDAPaI (ORCPT ); Mon, 1 Apr 2019 11:30:08 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x31FThcd026151; Mon, 1 Apr 2019 10:29:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554132583; bh=xHXocBsylgu4R1PHnwISrYdfCvRaWwwUcAC4RlxUcFg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Y8yRZQ3k+BELZ5q1g6gXA3saiXzabggS6WJ5ZFtn2yxUvZ8lgd6HG0BgHM13yvMqJ aZ2tBePYae/ya2AP2zVXrEqGCQkuBnwQBFg3ENckG2hZYgwaX3ojyE5VaMcHz/RzBK PwvJjaPUQaRmyfewfZqSA0xQ7FE6bsDy3jqariSE= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x31FThaY128374 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Apr 2019 10:29:43 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 1 Apr 2019 10:29:43 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.24) 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; Mon, 1 Apr 2019 10:29:43 -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 x31FTh4W118558; Mon, 1 Apr 2019 10:29:43 -0500 Date: Mon, 1 Apr 2019 10:29:43 -0500 From: Bin Liu To: Maxime Ripard CC: Samuel Holland , Chen-Yu Tsai , , , , Subject: Re: [PATCH] soc: sunxi: Fix missing dependency on REGMAP_MMIO Message-ID: <20190401152943.GI25852@uda0271908> Mail-Followup-To: Bin Liu , Maxime Ripard , Samuel Holland , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-sunxi@googlegroups.com References: <20190301022044.24431-1-samuel@sholland.org> <20190301144348.titicfsmukd3kogj@flea> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190301144348.titicfsmukd3kogj@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 Fri, Mar 01, 2019 at 03:43:48PM +0100, Maxime Ripard wrote: > 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. > > > > 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. Should this go to stable tree as well? Is a 'Fixes' tag for it? > > Signed-off-by: Samuel Holland > > I assume it would go through the USB tree. > > Acked-by: Maxime Ripard Regards, -Bin.