Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3981767iog; Tue, 21 Jun 2022 09:38:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tUtOvXLjx3ieWAH10CEpmW2lDY4JaX2X+QuAXrcLQRYeLehvBRz5gBIOzKaaZKNw1XyUg6 X-Received: by 2002:a17:906:5fc4:b0:715:ebe6:7415 with SMTP id k4-20020a1709065fc400b00715ebe67415mr26366846ejv.725.1655829484250; Tue, 21 Jun 2022 09:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655829484; cv=none; d=google.com; s=arc-20160816; b=IMt/U79CzQm5FbamnjK2xqUMINVZO27K3vXob4yf6XAfA7yVvazO1WpkGkxQQsb/b6 D8OtltFoiISMI1iv4MiAUpkj7yPVzciz0Gf2Lv+gJKgy89TUCBpu1faREcSxJKLEO0QY Nlv42NYOLClmSXyWBzuQagELwStYCmnfpH2idvAyh0qU/c5MOv6VJu2VGPI+pd2moaYj b4Cdide8A98IrmN8E6bxZLQM1BYyHl7gxyK9KDah4eYIttI5afO+1pYsOcJQ5xX0h8Qf 9yETJsibuwbpv4xJ1Vt9Q7AFwAJBeZCNL+ay2Hj2vRWIxdavhq3vI16DC5bgj/Bmj/fr pq7g== 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=6f6mchpkGAoQTBVb95PMvTYApL6hiX50UGJlEV/6gZo=; b=teXhQyNbm9cla6t9XwgXChEDIoe/ScIInKdk3Fjd7qnsCazwBAkFu9aUenYXLLPq+2 MmGHtL/wwYqOj4nnl999d3/YQxpIghhS0XtGo75sSzEPouJx4eAQMJ5aV5SbHTuVz9Rq 1x2sbtzosdPgpMkPDOfZYKlKgBnAWfR6IwjwICyFhNHNVvF33XhN5IJsfMRIxVfbjkKs nnHbZUL0H0FFY1uhrgr9vaC5p2Zm200f0cMjFbr42Sz6eSk8GJlYjTPs64bp8jVN+QqY qPkormHJQqiqRxJaV/0BEsg2FMrywSMi/+4J2GSTIlVzS7wlEKjWgUKy0KzoyNK5E8re O+CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="mYghn/1s"; 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 qw15-20020a1709066a0f00b006ff288d1c02si15356342ejc.805.2022.06.21.09.37.34; Tue, 21 Jun 2022 09:38:04 -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="mYghn/1s"; 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 S1353217AbiFUQCr (ORCPT + 99 others); Tue, 21 Jun 2022 12:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353491AbiFUQCe (ORCPT ); Tue, 21 Jun 2022 12:02:34 -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 21E1D25C53; Tue, 21 Jun 2022 09:01:45 -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=6f6mchpkGAoQTBVb95PMvTYApL6hiX50UGJlEV/6gZo=; b=mYghn/1swk/lIPK0weN4r6vRdI kQsTxWBXBos7RDrvIzyJRb+rxRPcVj5BzaoCnRnxx98SAQlbDI3d2jLe1lse5FrBK+t5qvbXGUsdo ICVDaXTZk2O97NpRmtldppVMokDgO6NatHXPvgE3MoKJNbWaF2CEzYsqS3LvQh2lOAgIXNGWzxXbk 424XVpss3oBBWGvCLSGB7hPft2KcU9uziA8gWUBlNRp54GnXZzAX6MxyxTJN8h+od5OnvIJvusoGb 81IkwQ4/VgA2A9s9Z0Ap4uIaVx429cn0QGU+JDSG051w/Ci93JAloMNcdNYGUX2OHQ+1U1qLOeJE1 N865ywOg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:32966) 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 1o3gJy-0002bT-RO; Tue, 21 Jun 2022 17:01:42 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1o3gJw-0006FV-KO; Tue, 21 Jun 2022 17:01:40 +0100 Date: Tue, 21 Jun 2022 17:01:40 +0100 From: "Russell King (Oracle)" To: Yann Sionneau Cc: linux-kernel@vger.kernel.org, Andrew Lunn , Heiner Kallweit , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, jvetter@kalray.eu, jmaselbas@kalray.eu Subject: Re: [PATCH] net: phylink: check for pcs_ops being NULL Message-ID: References: <20220621134917.24184-1-ysionneau@kalray.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220621134917.24184-1-ysionneau@kalray.eu> 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 Tue, Jun 21, 2022 at 03:49:17PM +0200, Yann Sionneau wrote: > Out of tree drivers that have not been updated > after 001f4261fe4d ("net: phylink: use legacy_pre_march2020") would not set the > legacy_pre_march2020 boolean which if not initialized will default to false. > Such drivers will most likely still be using the legacy interface and will > not have pcs_ops. ... which means they're broken. The answer is not to patch phylink like this, because even with this, it's likely that they are still broken. They need to set legacy_pre_march2020. Note that the legacy stuff will be going away - some of it, such as the mac_pcs_an_restart() method will be going away, maybe in the next merge window. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!