From patchwork Sat Aug 5 14:45:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 131492 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp498663vqr; Sat, 5 Aug 2023 08:00:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYgfbEsw63ORrnuN01ZYeWi2myxaU94/81nYBml6fIB7SfHlgXl9Tk884rxyYUxMVocdFx X-Received: by 2002:a05:6a20:3b11:b0:13f:1622:29de with SMTP id c17-20020a056a203b1100b0013f162229demr3443410pzh.7.1691247612703; Sat, 05 Aug 2023 08:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691247612; cv=none; d=google.com; s=arc-20160816; b=hd9MLYswZJ9Pz6gqxS//TWe3wLWM+9htfk/HoAGLF/AwP/7G6O0opQneZ8UpIS8dZm MZvdnOlKyUFIsO4AT1a66AzKJroLxGk+UQzfyDaJv+sdj2qj4pqRD2+uuV+uYR0vv9rF Ggl3rnSnuOo6mb5ozaqOKRoswGoIC44+XaSXQJeNISg9th8LsJ42BGhztPB25wyxY7+l cglCJdHZCjmIBsCQoOsFCNIDtVnWsTrDeeJrL8zZxqQ88/hjh6DIC4glY2iqzT4o997F PDmH907SjhQOL8gUAW551FbQNe/lK0PFkgdhSHQNmHgB4aqmEy9+LeWA8LtcW4tpH3ON GqBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=ZU8KG/JEknjyCrH4oo2Td7Ba+ivtxOxWhLjLiiGwMsQ=; fh=414nnMl2cRR/Qthz5duEXL2A8rYH3v+e0Kt5MszV6OA=; b=Rb7Hv7eiRKz016KmEdgboc506RDVOCo8QrTm3E6pwv2cD7Nqh8syZU7vwsz9SeHw4s TZVJZXdJr0qOIBO5T2F9UFDbRL91KhIYJ9ugNPYSamKXTMGBdnWjvx4TdAMg9wIp2NOG 7SwUOsOY3nOVw3O6Hj3vnjMuDcoAafnJfv/T97KthPtlojlft4YRhSrZUCZO0ZgJMUW+ c3lYDroC29aiRjVLlD6BrEc6DVCYoSTNpCD8O9D8T1SBGlTmPudmmASVbiWfD3KQsnZd sUK5O58SrMEKWGt/ORXqtjThkId7lCy3viVS1OkNZCxAGIYNrZnCWC21AUl9MfUbFCgy lUUg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a6566c3000000b0054fd06a3585si3215420pgw.158.2023.08.05.07.59.58; Sat, 05 Aug 2023 08:00:12 -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 S229604AbjHEOpw (ORCPT + 99 others); Sat, 5 Aug 2023 10:45:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjHEOpv (ORCPT ); Sat, 5 Aug 2023 10:45:51 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ADFD4224; Sat, 5 Aug 2023 07:45:50 -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 1qSIXH-0000Ou-2v; Sat, 05 Aug 2023 14:45:44 +0000 Date: Sat, 5 Aug 2023 15:45:36 +0100 From: Daniel Golle To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: dsa: mt7530: improve and relax PHY driver dependency Message-ID: <3ae907b7b60792e36bc5292c2e0bab74f84285e7.1691246642.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773401656941238465 X-GMAIL-MSGID: 1773401656941238465 Different MT7530 variants require different PHY drivers. Use 'imply' instead of 'select' to relax the dependency on the PHY driver, and choose the appropriate driver. Signed-off-by: Daniel Golle Reviewed-by: Simon Horman Reviewed-by: Vladimir Oltean --- drivers/net/dsa/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig index 3ed5391bb18d6..f8c1d73b251d0 100644 --- a/drivers/net/dsa/Kconfig +++ b/drivers/net/dsa/Kconfig @@ -37,7 +37,6 @@ config NET_DSA_LANTIQ_GSWIP config NET_DSA_MT7530 tristate "MediaTek MT7530 and MT7531 Ethernet switch support" select NET_DSA_TAG_MTK - select MEDIATEK_GE_PHY imply NET_DSA_MT7530_MDIO imply NET_DSA_MT7530_MMIO help @@ -49,6 +48,7 @@ config NET_DSA_MT7530 config NET_DSA_MT7530_MDIO tristate "MediaTek MT7530 MDIO interface driver" depends on NET_DSA_MT7530 + imply MEDIATEK_GE_PHY select PCS_MTK_LYNXI help This enables support for the MediaTek MT7530 and MT7531 switch @@ -60,6 +60,7 @@ config NET_DSA_MT7530_MMIO tristate "MediaTek MT7530 MMIO interface driver" depends on NET_DSA_MT7530 depends on HAS_IOMEM + imply MEDIATEK_GE_SOC_PHY help This enables support for the built-in Ethernet switch found in the MediaTek MT7988 SoC.