Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp497868iog; Thu, 30 Jun 2022 05:04:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vm59HE51/7cWyWCXkOqDxI1j+Zko45eLGnLvuE+z0Rv/xOpVtoX32up7KQa7c2KaQXkOAt X-Received: by 2002:a17:906:76c9:b0:726:f0f2:6504 with SMTP id q9-20020a17090676c900b00726f0f26504mr8291010ejn.213.1656590665687; Thu, 30 Jun 2022 05:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656590665; cv=none; d=google.com; s=arc-20160816; b=MOmWLfG9SbJiLGbqFkB1IwUkAepxw7L7ZW/xzrXws1la8l0m0iACR0pbtWSzgoy2uI xwAZXDE5epj2jjIJsuCaCgrY1UZbrEnTXT/9zuUpplsc/dzfScB8bHF5/UHF8QudhAC/ +CTeUW2OrXGaLAXk18PZhBP16TBrfZ+F8v9xUci5aLLkkx1u2It2X+YdX2EiNAVMJMOP zh4YGTO2zwEaR6DRaXGWwLfJOW88iqINnAZqz+PBy+3aDTTtMflAbmvwqSy/CCNaIRGA uw95TcTmp4IvEw4s0CpuWE3QOcClMabFsn2ZmxZAUjBzg9sC+LzA1abRLijfTZ8ext2m p9ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=YUegSAtrHJuf++oLd2AkDHyUJS1bF226T9zeUPibzdI=; b=iDjZY4jv8DlFDJ57L5+u+DCYQNHE8bWqw1KoBZDMUtEwbXAygJatcTnKqpsMc8Kh2/ jOO191q+WBhXIwoGy+P4UBoCPbL84VfLTFwq8fbmW56sOSAlV1SbFJTcPrAqGTqRSeeI NYCqOxJN0ycunTuC8xF45IDJnu+bZ87HpXyvTafy7ghIhTwW/OoxTy+Zv5qsEOg5rh47 VbuD/NmwMqpbGOmJ0QJPnM6hNO3ujSxfmTg/Hz6wrtyXlOelJbjIQSQgoHTRw1AyYFPj sPh2OxCbRbnLlXwjMuLuDAdhT63Cjgml/sF/Mfky5mR93sH1pXMIVhOo1kaM9yHRQDJ1 cRvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=a7IyqWkd; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp14-20020a1709071b0e00b00722a6137b13si5344880ejc.239.2022.06.30.05.03.58; Thu, 30 Jun 2022 05:04:25 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=a7IyqWkd; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235071AbiF3Lgm (ORCPT + 99 others); Thu, 30 Jun 2022 07:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbiF3Lgk (ORCPT ); Thu, 30 Jun 2022 07:36:40 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98F7E5A446; Thu, 30 Jun 2022 04:36:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YUegSAtrHJuf++oLd2AkDHyUJS1bF226T9zeUPibzdI=; b=a7IyqWkdA70BWwqXqNN4nS6fTV 52K3yOWMROiMYthiioE0NOH9Ir1XwJG5ltYsjVradu9PNBobke0xtZqhLqFjls/9RKQR56sB49MrW UYUziAQa0i7ekm0yvuTbY0H2eeMjLvComguGJCv7m4g410lnooasvXKDqntBVQx98MsSy9rP+DFtH o2EK19blD/VcqDrCuffcK/Up1avcHPtMBF1Aa1x01aIlWqtC+C7emT76eSYTUdp08/x4ZNczFdWPL dRPwpftJN3R++G3Ac//nPYu5d3WJDfL8VpUNVA+p/YzfUMztYnIBtQrIWQySDu3wOyE55YtMIPaB4 pFXs5xRg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33114) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o6sTI-0004Lw-8e; Thu, 30 Jun 2022 12:36:32 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1o6sTB-0006kW-4c; Thu, 30 Jun 2022 12:36:25 +0100 Date: Thu, 30 Jun 2022 12:36:25 +0100 From: "Russell King (Oracle)" To: Arun Ramadoss Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Subject: Re: [Patch net-next v14 10/13] net: dsa: microchip: lan937x: add phylink_get_caps support Message-ID: References: <20220630102041.25555-1-arun.ramadoss@microchip.com> <20220630102041.25555-11-arun.ramadoss@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220630102041.25555-11-arun.ramadoss@microchip.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 Thu, Jun 30, 2022 at 03:50:38PM +0530, Arun Ramadoss wrote: > The internal phy of the LAN937x are capable of 100Mbps speed. And the Good English grammar suggests never to start a sentence with "And". > xMII port of switch is capable of 10/100/1000Mbps. ... and supports flow control? > +void lan937x_phylink_get_caps(struct ksz_device *dev, int port, > + struct phylink_config *config) > +{ > + config->mac_capabilities = MAC_100FD; > + > + if (dev->info->supports_rgmii[port]) { > + /* MII/RMII/RGMII ports */ > + config->mac_capabilities |= MAC_ASYM_PAUSE | MAC_SYM_PAUSE | > + MAC_100HD | MAC_10 | MAC_1000FD; And SGMII too? (Which seems to be a given because from your list in the series cover message, SGMII ports also support RGMII). Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!