Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3612978rwd; Fri, 16 Jun 2023 22:14:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7E6Ld9wsJfE+o9o7mA/gUQN6f1eKRY9uf1KO9XwvJTtlYrBtE8QzWbxUyBtVg7bQhipr4Q X-Received: by 2002:a05:6808:180c:b0:39a:c1a0:7cb9 with SMTP id bh12-20020a056808180c00b0039ac1a07cb9mr5153138oib.34.1686978882654; Fri, 16 Jun 2023 22:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686978882; cv=none; d=google.com; s=arc-20160816; b=HN8yTR41/yYqf6jp/9ukrDOy3ZcPp9HlGsnSVkr3062DUDuAIjG+q6adzJ+lQlvZbe uarDNgCHSqg9HpS76BvMWdXx+Jbw1jXKDoiBxU4ODUJUXCx1mV6TzXy/DBs15oHnDXGD Zw5Hcmlz/VeMk/RKNqQJz6rYvk/gp6hoC2JwVLdgOYhISgkmFj8DfxS6vc+trwus/J2e j651wH59hLH3fn7qwUVQievhTdi1ya3uJW81wAjagu6RpueOoIIyCp437QDMXuljiuVu HNbBW8PyHd86uXZQSAAZtcPEE5qah2tbltQlVJfN3M4OQSeHlEfYet6DDQhzvB0DXSZT goMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wUkV62sn8j1lEhJKWcMl0xb3qjf2WlXQi9oTNeYqRrc=; b=o4OvwKen8t+gzU9zlmqlrjCMDmkxsoXHDa2reMgLMuNWbcbGpdv4cmM1DTDIkYtbd2 64mrv7zHRXQqm/2H0OIn2EQ8Ntnl41lKaCgJI56fEJP6guAm0q4DJc0KzoxD6vdHzHeU 49toc0IAU2NCgL0ACBtFZaz1+dsP4ndu5+lpVEEDREm1d91NKlEdeUvXEkMsAgr3KPfV g4AO9pHT4g0z5EkoBXm8muYK16DujQZ5fMxuie+jl8yXthPQvhRU5J+udtcefdbaffAh FdYn2ThC7vpCClhEtEgRBEf2BJ2wcuzC+zElhC+wKjMQb3sDoIg2tf2+1DU4NN4PRlAI IETg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4umd6Uza; 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 p18-20020a170902ebd200b001a27afc07d9si16140051plg.146.2023.06.16.22.14.27; Fri, 16 Jun 2023 22:14:42 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4umd6Uza; 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 S230112AbjFQEgT (ORCPT + 99 others); Sat, 17 Jun 2023 00:36:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjFQEgR (ORCPT ); Sat, 17 Jun 2023 00:36:17 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BDD1FF7; Fri, 16 Jun 2023 21:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=wUkV62sn8j1lEhJKWcMl0xb3qjf2WlXQi9oTNeYqRrc=; b=4umd6UzaGBKkL6/CSU2iTGaRwF IUFovXwULMrVCDKZqwJE0gUy8wGxdFK+iyY9SyPUZL1UzU4QbbB9Jv7NfzXtvqHJN4R195HdPnqah o4xsWfOR5dD5VaqnGsGAT5yr8R+VHaFtQeQLAi1o1sfYJZQqf93ZGLbBhR8M39BWX15rSlAdwrBfM NljzugUhuTGSRDID5MizyBSuSq9jVkwmrD4Sxzs5nUaRe4ugWEpTCnKkvAWzt3bBZEtzXvdUBva4R JTxl4e9YK0E/yjwvUAm/Q6T1Gr1Ob03SByoSJjMN3QAxCLxsBd3e1s927QurYHw2XiXDNUsKzt2Rn MIsg2RWg==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qANfC-002hUJ-0e; Sat, 17 Jun 2023 04:35:50 +0000 Message-ID: Date: Fri, 16 Jun 2023 21:35:48 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] net: phy: mediatek: fix compile-test dependencies Content-Language: en-US To: Arnd Bergmann , Andrew Lunn , Heiner Kallweit Cc: Arnd Bergmann , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , =?UTF-8?Q?Ram=c3=b3n_Nordin_Rodriguez?= , Parthiban Veerasooran , Frank Sae , Michael Walle , Daniel Golle , Piergiorgio Beruto , Vladimir Oltean , Jonathan Lemon , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20230616093009.3511692-1-arnd@kernel.org> From: Randy Dunlap In-Reply-To: <20230616093009.3511692-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 6/16/23 02:29, 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 > 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 Acked-by: Randy Dunlap Tested-by: Randy Dunlap # build-tested Thanks. > --- > drivers/net/phy/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig > index a40269c175974..78e6981650d94 100644 > --- a/drivers/net/phy/Kconfig > +++ b/drivers/net/phy/Kconfig > @@ -239,7 +239,7 @@ config MEDIATEK_GE_PHY > config MEDIATEK_GE_SOC_PHY > tristate "MediaTek SoC Ethernet PHYs" > depends on (ARM64 && ARCH_MEDIATEK) || COMPILE_TEST > - select NVMEM_MTK_EFUSE > + depends on NVMEM_MTK_EFUSE > help > Supports MediaTek SoC built-in Gigabit Ethernet PHYs. > -- ~Randy