From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4496DEB64D9 for ; Sat, 17 Jun 2023 22:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8rngbRUJ/mmv/PEyrK+guoFDfPiBSAi4hwDACvtbhso=; b=BY3vQGhw5n3m3F OoON9u6TcXv9C77Vci+Noa0Zf9KxnOW/H5IwuTqPq3eRlokVEpAI+pkkJrmJOO+smh/fQDfdIE9HT UuiAltg/6wDWOT9PbvR8jui1UHZTj8PcOAm/kpmCgzwbLWD8XET4QWV5o5GV6kTqAR9DmFLasTxuD FwW01SXoBgQ6CJc/gCWlNSD+Ul0j4gtEVVYwNO3mghu1pvqegntVzA5DEgJO9MmHlpeS+dExdLJnB ThUjcaUn76iCMl6spXNCJQtISGtqEVaJ2cftTqcpFQOHPGpcVzCPFcOpJjIfHm8t+5ZmlW3szrmvR gM68YdWtuTINcUy9FbGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qAePw-004W2c-1r; Sat, 17 Jun 2023 22:29:12 +0000 Received: from pidgin.makrotopia.org ([185.142.180.65]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qAePs-004W1i-37; Sat, 17 Jun 2023 22:29:10 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1qAePH-0005ow-24; Sat, 17 Jun 2023 22:28:31 +0000 Date: Sun, 18 Jun 2023 00:26:32 +0200 From: Daniel Golle To: Simon Horman Cc: Arnd Bergmann , Andrew Lunn , Heiner Kallweit , Arnd Bergmann , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , =?iso-8859-1?Q?Ram=F3n?= Nordin Rodriguez , Parthiban Veerasooran , Frank Sae , Michael Walle , Piergiorgio Beruto , Vladimir Oltean , Jonathan Lemon , Randy Dunlap , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] net: phy: mediatek: fix compile-test dependencies Message-ID: References: <20230616093009.3511692-1-arnd@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230617_152909_003237_0433C27D X-CRM114-Status: GOOD ( 27.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 16, 2023 at 01:47:35PM +0200, Simon Horman wrote: > On Fri, Jun 16, 2023 at 11:29:54AM +0200, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > The new phy driver attempts to select a driver from another subsystem, > > but that fails when the NVMEM subsystem is disabled: > > > > WARNING: unmet direct dependencies detected for NVMEM_MTK_EFUSE > > Depends on [n]: NVMEM [=n] && (ARCH_MEDIATEK [=n] || COMPILE_TEST [=y]) && HAS_IOMEM [=y] > > Selected by [y]: > > - MEDIATEK_GE_SOC_PHY [=y] && NETDEVICES [=y] && PHYLIB [=y] && (ARM64 && ARCH_MEDIATEK [=n] || COMPILE_TEST [=y]) > > > > I could not see an actual compile time dependency, so presumably this > > is only needed for for working correctly but not technically a dependency > > nit: for for -> for > or > for for working correctly -> for correct operation > > > on that particular nvmem driver implementation, so it would likely > > be safe to remove the select for compile testing. > > > > To keep the spirit of the original 'select', just replace this with a > > 'depends on' that ensures that the driver will work but does not get in > > the way of build testing. > > > > Fixes: 98c485eaf509b ("net: phy: add driver for MediaTek SoC built-in GE PHYs") > > Signed-off-by: Arnd Bergmann > > I don't know the answer to the question of if this dependency is needed or > not. But I do agree that it does what it says on the box. It's not needed to build or load the driver, but the PHY won't function at all without reading values from the SoCs efuse, and for that the nvmem driver is required. Using a simple dependency instead of select will fix it. Reviewed-by: Daniel Golle > > Reviewed-by: Simon Horman > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel