Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7025289rdb; Wed, 3 Jan 2024 01:52:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPVVgDRVWdx8rQbA5JGR+iUEjMxbo9Ay9LecYbApGsHiIGMUZffJaTgbT8Dny7kxOebexj X-Received: by 2002:a17:902:d550:b0:1d4:c336:2b10 with SMTP id z16-20020a170902d55000b001d4c3362b10mr3200879plf.0.1704275531921; Wed, 03 Jan 2024 01:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704275531; cv=none; d=google.com; s=arc-20160816; b=HZytkHUM0PtrjErUVAXCeufb8JKq4zjEBl7e4K68RXJAxn/uJe4zVbGXUlPmcbnTK6 M3OFHazZ1yfElReZwQTtyIrMbmIBbu9IntT1SSZso0QRiTRL2/xi04guDr6KQOAVEIf9 g7K+bK1GS8qy/ondm5O04A9TfEGTSN8bB4vj/ybm4K+DZG9ZCwJC8ygtV5Zp3AS3y1/j z2c8pOoDFKP0+hZ79VRmEfPlW13MzwL0IALLHIUjEuAYRkAigHw3Sd7bKYRl9adxNlWj nKD8Z6Z2X30sB80TndZjAuhzbiPvNZELzcuhqI85VN12/d81Qoih1C6dfI2ywvxBNdJT PhWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=D5wPLE9TZz9FB8/zFddxM+lmOG8aS1WUAq/N+WIF/34=; fh=WoShdCroP/j/37I8xjqE1IZYSekzQLyQ1ZkhjGphzpQ=; b=XgI2m/kbE2vXBen8DFaHb9UP+82fEM6y8whkwA1RG9rAI5JCPUohv6YndvohNrCK3u yjOxgBdQ+pFw7a2bxbMhzosLh4Fgi7ewEJSa6JElsp6m6RAohn77c4Ybn+Vy3qEJefCe teaapAd2bZ11gO1i61Wy7QeJalcz55m+hTFotcjNGWWvvKHJLPqMi7A7LovjdUCjGhPy PJt0JBPlRGl6NkeQqVqnXzYgPz6j8On7S7wRvod1/bKyisScWejqIpUcEGH2+CUaI4hI 0Sb7lfi26irpMhAVGfP4+qkcFArwlUjeQLfTBQJIwuj6Dqp2+BMYVaPeARR2f/MqB2Uw xu2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=jg9h8ytC; spf=pass (google.com: domain of linux-kernel+bounces-15357-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15357-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p12-20020a170902eacc00b001d35223d0c3si21232683pld.68.2024.01.03.01.52.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 01:52:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15357-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=jg9h8ytC; spf=pass (google.com: domain of linux-kernel+bounces-15357-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15357-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 91A3E285667 for ; Wed, 3 Jan 2024 09:52:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8C0C18E3D; Wed, 3 Jan 2024 09:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="jg9h8ytC" X-Original-To: linux-kernel@vger.kernel.org Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 848D718E3C; Wed, 3 Jan 2024 09:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=D5wPLE9TZz9FB8/zFddxM+lmOG8aS1WUAq/N+WIF/34=; b=jg9h8ytC1jyaCi86YZ3yq/HzUo Seznnu4aTFRdTXJGmfFHAoH6YU3aS90j7cpthWeEQHQJRY2fKCahqw78iCTzpUsUvyYF0Idcea9e7 4arIyVUDfOFaoh9Ibm0so5z1qetdUTK0DxUHg3rlmi42pbdqAQmsIpfDsucH/U7J2FS+8C1QwFHUG /ZaP/aEtdTMz/JKRqc7Fvp06Qz7ijJfpB+2r5LEOqJjR4MudDJfT0fJl8KRvuJCSFaU5DM/lstI4G VrnQtA+7spviCCv2HrumYR8WSHEDQpeo70e0Z8kk54G9pVtQUnZ9haza8a/DcL/nUFA4ZkjBsJYKu +4iAFSWQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45524) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rKxtZ-0007JJ-0I; Wed, 03 Jan 2024 09:50:41 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rKxtZ-0006G0-1w; Wed, 03 Jan 2024 09:50:41 +0000 Date: Wed, 3 Jan 2024 09:50:41 +0000 From: "Russell King (Oracle)" To: Daniel Golle Cc: Eric Woudstra , Alexander Couzens , Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Frank Wunderlich , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH RFC net-next] net: pcs: pcs-mtk-lynxi fix mtk_pcs_lynxi_get_state() for 2500base-x Message-ID: References: <20240102074408.1049203-1-ericwouds@gmail.com> <92190426-3614-4774-9E9F-18F121622788@gmail.com> <74223164-ab50-4d6d-a4f4-561b0a70d396@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Tue, Jan 02, 2024 at 09:01:23PM +0100, Daniel Golle wrote: > On Tue, Jan 02, 2024 at 08:33:32PM +0100, Eric Woudstra wrote: > > [...] > > > > So if phylink_mii_c22_pcs_decode_state() should not set the speed, then it is not correctly set somewhere else. > > Yes, but the fix should go to pcs-mtk-lynxi.c and you don't need to > change phylink for it to work. ... which is broken thinking. It's "let's add custom hacks to drivers to implement driver specific behaviour, ignoring what is being asked of them by the upper layers." -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!