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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A37B2C433FE for ; Fri, 25 Feb 2022 14:35:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241822AbiBYOgM (ORCPT ); Fri, 25 Feb 2022 09:36:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241804AbiBYOgJ (ORCPT ); Fri, 25 Feb 2022 09:36:09 -0500 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 279F31AE653 for ; Fri, 25 Feb 2022 06:35:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References: In-Reply-To:Reply-To: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=lMw4C24Lhq9Oxda7tASaUf7APCGeJqQy5D7CKwKVOFg=; b=PsD6V45a6sRJIynpY4Q/VH62Xf AHc4P3TJykkcBEppUmT855Kgmuv0cxvrY3fMc+R33xRjXcJwRvRpwjPruf38H/8MqFZ/lxp1cNGuL /21vmU8PZ0KVjO7L2Z/AX9Q4n4CEWaO4VzyUnTfH+y/ruMWL0sLyv6PhAfsqzjfxQ2pMJHdiou1ix YSGcLri8xMT+iFcMXKe7InqNzzg78lMAe+6kBy+l6UpgTHK519Bf9ijZNQKuLFBzx67WnMJF6zNr4 XjAHFU3w9AlcfFu0Q9efdC3m/xMl8V9JOmyZ5Cw8dazguWMiY+rGmkkXME/0oH+VzvWtuao92EBJg +p5+AiBQ==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:46986 helo=rmk-PC.armlinux.org.uk) 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 1nNbgy-0005XN-FO; Fri, 25 Feb 2022 14:35:32 +0000 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nNbgx-00Akj1-Sn; Fri, 25 Feb 2022 14:35:31 +0000 In-Reply-To: References: From: "Russell King (Oracle)" To: Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org Subject: [PATCH RFC net-next 4/4] net: dsa: ocelot: mark as non-legacy MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Message-Id: Sender: Russell King Date: Fri, 25 Feb 2022 14:35:31 +0000 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The ocelot DSA driver does not make use of the speed, duplex, pause or advertisement in its phylink_mac_config() implementation, so it can be marked as a non-legacy driver. Signed-off-by: Russell King (Oracle) --- drivers/net/dsa/ocelot/felix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index 20ac74ee322d..f517bf902812 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -784,6 +784,12 @@ static void felix_phylink_get_caps(struct dsa_switch *ds, int port, struct ocelot *ocelot = ds->priv; struct felix *felix = ocelot_to_felix(ocelot); + /* This driver does not make use of the speed, duplex, pause or the + * advertisement in its mac_config, so it is safe to mark this driver + * as non-legacy. + */ + config->legacy_pre_march2020 = false; + if (felix->info->phylink_get_caps) felix->info->phylink_get_caps(ocelot, port, config); } -- 2.30.2