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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CBDCEB64D9 for ; Sat, 17 Jun 2023 22:29:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232932AbjFQW3L (ORCPT ); Sat, 17 Jun 2023 18:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbjFQW3I (ORCPT ); Sat, 17 Jun 2023 18:29:08 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E18CC1AA; Sat, 17 Jun 2023 15:29:06 -0700 (PDT) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 > >