Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2484057rdb; Thu, 21 Sep 2023 22:56:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+3qjZDP9xC4g8hy2cCtbqm6RWU0D92TNqBWwZSkVNnCSu6NfxTSptvruzEFCjckYjA6By X-Received: by 2002:a05:6358:7e46:b0:134:c682:213f with SMTP id p6-20020a0563587e4600b00134c682213fmr6785146rwm.31.1695362213637; Thu, 21 Sep 2023 22:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695362213; cv=none; d=google.com; s=arc-20160816; b=T5V/F8KmW+40Ot1ySrt5TWJnhOy68clwe9QEc1VwV/M250BjvKpTClLW1iNmBDDG2u gOIHmOG6s0p06e/AdQEbM4wF5+OvC1s4h9EzebHPgKqiioOjEFB1fdZ7mAnPiVfvua76 kQFmWXNRjr2q+PLFzVovyOclx/i8aqgkSch7jaSrOgmxGcdLURfiW28m7Ds9PQRSLzz6 s7vDS3xxEaG9sbfenhTAUhBQw/MgZ/8RTkbX8FUbYrIgknK7tzp5gpwvzP2MekbFnoNr 7GcLEVZlHO2agz0xq+4WNUi7GrLWEj4A3ywSz4m/kMQQ6XsvtOEqXwrZrVqfKcWlh2DY ewmg== 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:dkim-signature; bh=NQXiZoHMCblnzW0FheGDzK8ZNsxJFNqugzxVPC1fy1I=; fh=Z9J7ALPEBoWbOpyZCsSikM+fedUOJKNp8hEVDPQxm+k=; b=tyFyWoJ4wtr6+GOJgCA9xdZXnu2d2GiNa5LwNJnwAvzVt8/C6xWbwhfDnzliuorO7t NoOQoLYh0sZn0pS0a8+LSsRASt4F4RKBhmnF39/ufA/okuAmwZqxYOpAxirU9rfgVDUr bAPJccd7iOKN5B2y3OhxxJ1+knNnFZ+yeI2eHIdq2wU4qRwMQcmODryjOfqSU/ECkQDM iNee5yMP1LsJhr+tbRIUBTcGLnSG6ZhPBbSVaBH9+pkltt96G3iP5gLQmIn7JxabmDp2 QOnZnkjj9gXV4I6cIriyqS+oZ/+U5xpqiffaGW5TX8THz0XnnIr1FV3ETdaeVCKi+SoB 7HPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=iIe0qoEA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id by9-20020a056a00400900b0069026fd5a48si3109833pfb.34.2023.09.21.22.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 22:56:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=iIe0qoEA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 25CE88375CA2; Thu, 21 Sep 2023 14:07:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232621AbjIUVGN (ORCPT + 99 others); Thu, 21 Sep 2023 17:06:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232679AbjIUVEp (ORCPT ); Thu, 21 Sep 2023 17:04:45 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C262DAFC11; Thu, 21 Sep 2023 11:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=NQXiZoHMCblnzW0FheGDzK8ZNsxJFNqugzxVPC1fy1I=; b=iIe0qoEAImcIE+rWAmnZ8xPO0W h7aRx1fUHew4bud6BGsi+v+ohOeiHSveI/FFZ5SyKv1kbc7VK83hD5MIgl8bSRk2MWkP40bLCLZKQ g5jPLEsA23tIcvia6u+LA4GTrpUy6SatHC/Edfnef7Y1TbnnVE/MEsgyVz7ZqKpkc/mo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qjJWF-0075Vg-FS; Thu, 21 Sep 2023 15:14:59 +0200 Date: Thu, 21 Sep 2023 15:14:59 +0200 From: Andrew Lunn To: Choong Yong Liang Cc: Rajneesh Bhardwaj , David E Box , Hans de Goede , Mark Gross , Jose Abreu , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marek =?iso-8859-1?Q?Beh=FAn?= , Jean Delvare , Guenter Roeck , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Richard Cochran , Philipp Zabel , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Wong Vee Khee , Jon Hunter , Jesse Brandeburg , Revanth Kumar Uppala , Shenwei Wang , Andrey Konovalov , Jochen Henneberg , David E Box , Andrew Halaney , Simon Horman , Bartosz Golaszewski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org, bpf@vger.kernel.org, Voon Wei Feng , Tan Tee Min , Michael Sit Wei Hong , Lai Peter Jun Ann Subject: Re: [PATCH net-next v3 0/5] TSN auto negotiation between 1G and 2.5G Message-ID: <4caade36-d4be-4670-ac79-d9d00488293d@lunn.ch> References: <20230921121946.3025771-1-yong.liang.choong@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921121946.3025771-1-yong.liang.choong@linux.intel.com> X-Spam-Status: No, score=0.2 required=5.0 tests=DATE_IN_PAST_03_06,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:07:27 -0700 (PDT) > Auto-negotiation between 10, 100, 1000Mbps will use > in-band auto negotiation. Auto-negotiation between 10/100/1000Mbps and > 2.5Gbps will work as the following proposed flow, the stmmac driver reads > the PHY link status registers then identifies the negotiated speed. I don't think you replied to my comment. in-band is just an optimisation. It in theory allows you to avoid a software path, the PHY driver talking to the MAC driver about the PHY status. As an optimisation, it is optional. Linux has the software path and the MAC driver you are using basically has it implemented. Why use this odd mix of in-band and out of band? It seems the change will be simpler if you just use the out of band method all the time and ignore in-band. Andrew