Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2462050rdb; Thu, 21 Sep 2023 21:51:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsY14tG7o4PS1UiPI8MPio7Vs7cDx9gqriG53TNdarC1u7QmkpFc6MO0hkC9tQ1w7BrL0j X-Received: by 2002:a05:6358:e90f:b0:142:d40a:82a9 with SMTP id gk15-20020a056358e90f00b00142d40a82a9mr6470803rwb.2.1695358290329; Thu, 21 Sep 2023 21:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695358290; cv=none; d=google.com; s=arc-20160816; b=MtBmtS+3hVTHlYIfFYjniF4sZ8e9OMmXL/Lxv1ho9QLF8aAhDVhHjbGMXWaJS4vkZE n6RDHDQ0oBsdQFMObhdtnjbjrF1CsyRZAqf+t1YpHnMYXuDa4uOtA5vZbGI1TL7hKS4o 0FHgMM29fSXnGiRwxv97fd6y/vYTQUb5RhRi23pM4qporzW+LBr5SGHdvNws9YcNQ40E hixt3irFxYD5ORDiQ1NDty1MjJQQwWc12yRVm4Qdse0fv0qw/yuONXS3KpomsN1o+/Sw POXj3CY2efZ0nonO0kL1POWEx6cNHQM9PJ/wD78pmVkpMma8wk33xJw0s0lJTeMrlEpR RibQ== 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=Z/gjZ6NwdeuNXyz1iXfuNTb1780WrCUmfyXB8A74g+o=; fh=Y7XL2eVUYVJ4BR3UrsoCzxizp/Rzj46Hl9SRbY26/Cw=; b=tL/1KGNXTGFeE+6+sqzFYUmZf0HzsNc+UmM42hbCwnPv5W57H79/6UDFPyi0U0/hbs Q0SJiTx5eT4qYrSqlrq/7iKra8I9fiIcaXX2b4fiHt0gAT5R/hAwVHkcm66JM83uBSWS xn6X1UHETFfxDvNEWiM80wuLsdzt50SgaD7jZljtXj6KAeoxp3v7r80Q3XVBxpzKyOof ieAca5Owq8AFoCRNaqT61gGhmFzT/9pEffUae9MoabUAE2tVVZJmDr9mQD4TJb+nTokP tMpJxA314XL4zah6NhJJBrDPcsui6FhzAtX2NTkAMdAlxTPfFFZGoKIch6PXFHCTDK40 ZyXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mDecZEV1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k64-20020a638443000000b0056ad77ddd4csi3019297pgd.438.2023.09.21.21.51.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 21:51:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mDecZEV1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 0DF9C8327F86; Thu, 21 Sep 2023 14:11:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231838AbjIUVLS (ORCPT + 99 others); Thu, 21 Sep 2023 17:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233137AbjIUVF0 (ORCPT ); Thu, 21 Sep 2023 17:05:26 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5FDAFC09; Thu, 21 Sep 2023 11:07:44 -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=Z/gjZ6NwdeuNXyz1iXfuNTb1780WrCUmfyXB8A74g+o=; b=mDecZEV1D+Pkf7/ecZob0+PcEI ydp21+7Xc4bfOIzUutQLHT7djnvEvIPGcR+X8uvGKkLB1LSGAGof30d4Iz/x2/PooFHIQd+SHN4V4 l57farp1zDlyjbX6Wctfvy7L+7NuRZyy3wrFanEnZ3ZHWAxnhPRrvmdsYbdWtQTmAlkY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qjKro-0076AY-OI; Thu, 21 Sep 2023 16:41:20 +0200 Date: Thu, 21 Sep 2023 16:41:20 +0200 From: Andrew Lunn To: "Russell King (Oracle)" 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: <0098eaf3-717a-4b50-b2a0-4b28b75b0735@lunn.ch> References: <20230804084527.2082302-1-yong.liang.choong@linux.intel.com> <5bd05ba2-fd88-4e5c-baed-9971ff917484@lunn.ch> <37fe9352-ec84-47b8-bb49-9441987ca1b9@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,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 lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:11:21 -0700 (PDT) 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? Andrew