From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB2C1E71083 for ; Thu, 21 Sep 2023 14:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rgvYAqFXDCLUcHtvkuRg1OULPPaflG7L+Ra2zCe+XOs=; b=2bEMN3wgo6eC+o mu75bUtsxJcf8AwZCNKti9BwlhYgKvjv6KP6yly7tymUvc+Olydg5Pujbh9EONg92G7D7js6rl+vm YHBTvGAHyZFNZsgEX2bBtzmvIoqILkiVxePLYddziB0P2Tz3Wz8m9cBzYe43vU4dlxl2xRr7VbKQy +yLmnm4bZS/Yz8y14AGI2gXQeRN6/qCXU55VOcYXP7Wf2ZHdMyN2dfilt5wH2hVxCtD0K7ePxidcu rq9htFo+tgpFiMk3hjdN2t5gcRu3vPqRf7ubbLrwMBFuVWRfCOQHqqwW9E6JJm/6KqiVI8F7eQ3v/ QUWpjZ9rz5SeZ/jptbzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjL66-006Kx9-2H; Thu, 21 Sep 2023 14:56:06 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjL61-006KwC-0h for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 14:56:05 +0000 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=GhMoIAPgQCKJ2wdzruWvhIESRnzObv34y1rzTZCaGfs=; b=jOwla4wSicj5QITXQqyN6Y6ZUK YZrdeLZYjbeLa+ZxVE+nEO3Y7OCwneLpSMeZypAhOUmtkLxmURie3dLLZAvKxSeo0zZYcTXCdTCdu QpuMqw0G9TRJM5IBXU35OqfEu8Gn+wgbo1WOiP1zXqLd9F1/NnlB0H7JqI/YGu7cRZR8ulw78J0pG P978Iqr3K6p7CVySLjAeWDIh+tBN3C6OFk9UQ5KUWe4D9nBcsla66SnN7NlcASjtnVp55mXIJD6Fv 3QehZoFgLjZ3k1BTsWks4d4df5f5wsHnePBZ5Jgd4kuY9vRk3GGc12ITEebpkwYdPm5l49R5PF/Ak UI8PTmiw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51610) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qjL5N-0004wv-0s; Thu, 21 Sep 2023 15:55:21 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qjL5J-0003dB-V1; Thu, 21 Sep 2023 15:55:17 +0100 Date: Thu, 21 Sep 2023 15:55:17 +0100 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Choong Yong Liang , Rajneesh Bhardwaj , David E Box , Hans de Goede , Mark Gross , Jose Abreu , Heiner Kallweit , "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 , 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 v2 0/5] TSN auto negotiation between 1G and 2.5G Message-ID: References: <20230804084527.2082302-1-yong.liang.choong@linux.intel.com> <5bd05ba2-fd88-4e5c-baed-9971ff917484@lunn.ch> <37fe9352-ec84-47b8-bb49-9441987ca1b9@lunn.ch> <0098eaf3-717a-4b50-b2a0-4b28b75b0735@lunn.ch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <0098eaf3-717a-4b50-b2a0-4b28b75b0735@lunn.ch> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230921_075601_259762_2F3258E6 X-CRM114-Status: GOOD ( 28.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 21, 2023 at 04:41:20PM +0200, Andrew Lunn wrote: > On Thu, Sep 21, 2023 at 03:12:19PM +0100, Russell King (Oracle) wrote: > > On Thu, Sep 21, 2023 at 03:21:00PM +0200, Andrew Lunn wrote: > > > > Hi Andrew, > > > > > > > > After conducting a comprehensive study, it seems that implementing > > > > out-of-band for all link modes might not be feasible. I may have missed some > > > > key aspects during my analysis. > > > > > > > > Would you be open to sharing a high-level idea of how we could potentially > > > > make this feasible? Your insights would be greatly appreciated. > > > > > > stmmac_mac_link_up() gets passed interface, speed and duplex. That > > > tells you what the PHY has negotiated. Is there anything else you need > > > to know? > > > > The problem is... the stmmac driver is utter bollocks - that information > > is *not* passed to the BSP. Instead, stmmac parse and store information > > such as the PHY interface mode at initialisation time. BSPs also re- > > parse and store e.g. the PHY interface mode at initialisation time. > > The driver ignores what it gets from phylink. > > > > The driver is basically utter crap. That's an area I _had_ patches to > > clean up. I no longer do. stmmac is crap crap crap and will stay crap > > until they become more receptive to patches to fix it, even if the > > patches are not 100% to their liking but are in fact correct. Maybe > > if I ever decide to touch that driver in the future. Which I doubt > > given my recent experience. > > Hi Russell > > You pointed out the current proposal will break stuff. Do you see a > way forward for this patchset which does not first involve actually > cleaning up of this driver? As I said in one of my replies, it would really help if the author can provide a table showing what is attempting to be achieved here. With that, we should be able to work out exactly what is required, what needs to change in stmmac, etc. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel