Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4558022rwd; Sat, 17 Jun 2023 16:48:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RVBNnP8HlW/xNdovWO4kYF3xaLhfjkXzkY6/NhKez0n7HgE5QmAkxSyw3rS23Sf66omKu X-Received: by 2002:a17:90a:58:b0:250:2311:1535 with SMTP id 24-20020a17090a005800b0025023111535mr5648924pjb.24.1687045682818; Sat, 17 Jun 2023 16:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687045682; cv=none; d=google.com; s=arc-20160816; b=VT18A4qbiAxaw3WpBcVDSG6H6J6lTvZ2mnzdFsD5d1246xJCz3+RQGEq5OLWvo+eyZ m5LIaxVNEgaAiyVKt3/WG1XKadxRaHvrAtrmO/icRudostJCnFMCFk1f+J9LxNl7iMci a7AecO/U7gbPFdeenc/ViXQxZ72nHOZgfp7lHJpNmvBgv5PSi7Prg+sMx32GzVDe6urg /KH7zzdmGKvpAzEE64efDt8jNFxCdXihfdQPT3X67zWIUs2mZUMJ0ZUNnYrxQ3Md7aTG PzL2pN1NUz7ADF+Bj72ZJ2f+3aON1+g3gB/PV4wV3HceoN0MVe6uRJ6a4BvwWe4rCDhw QesA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=aHruX7Y1ksM7IoGVHJWgODH/oF9yya85zN/gpg/mzrY=; b=BuKnq/RVw4GDrZoMgV77/3R3ponwUEC+OeTj3mswU21qOf6IAzwt3QWfl+hKzBS22b 6xmY4Y1QiwuqFKbvg/E4bvXdmSvyPS7RkFf3IDVMX5nCrKDrwnf2u0UYCQ38QW0AQqD0 UV8kC5l2xaiO1/KTzCNmssmI2PXpwtj9QyW4tN/ESo4uYNL2vNWEn2MgNHqAHDj2U85S x4CdydUp2+TXONXIzk4WMdJ9ykk8wZMqDMi79YMV9RJaDAiqiJxEj15jbYQuXDV4jvy1 J+3CYsUkBvuK6fWelVCX3AQ6Y/iJOPuf2cKj9RbtMaZh+4d3GKyK0OJ+2IP3LZ9qlIL6 Fe/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a17090a31c700b002508889985fsi4577602pjf.95.2023.06.17.16.47.38; Sat, 17 Jun 2023 16:48:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232065AbjFQW3K (ORCPT + 99 others); Sat, 17 Jun 2023 18:29:10 -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: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 > >