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 0E279C433F5 for ; Fri, 25 Feb 2022 14:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241799AbiBYOe5 (ORCPT ); Fri, 25 Feb 2022 09:34:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231965AbiBYOe4 (ORCPT ); Fri, 25 Feb 2022 09:34:56 -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 BF7BF2782BB for ; Fri, 25 Feb 2022 06:34:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: 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:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=twv9sAuoH8cAe8LYuUraaKkQQmSqwSFfr+YAKCSoNpU=; b=NKf8RHISYRd/Opgn15CCmRDfZd JUSfRfEjtWRiyW4QZyXMMtophl0xAJCEkMgDALLX8+8zR/mhbvr5d7pVBqWPpoGpzMQaSvsQBIDDW B91qLS3fEFZpD8PEJpkRix1LuczDVg+sfDNuYeldmDiDxBmr16vdcw6l5sSnRmK406QrJSRLrJLoe FPvGQ0KkL3F2y0BevfxWeJxLFCYXRNwZJMOmGbetIwI6SwTXEfLonOcWrU0hjbpTla+GlFtkqh6LU PttSMvM2YbrvDS6Wo8B90xiGjBdCR4bCTmggGwK1mlr1m3wnHXmOLjvHPeVrHvTgRZjNI7CET2iJo hRCTjRzg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57492) 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 1nNbfh-0005WO-CR; Fri, 25 Feb 2022 14:34:13 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nNbfe-00038l-OV; Fri, 25 Feb 2022 14:34:10 +0000 Date: Fri, 25 Feb 2022 14:34:10 +0000 From: "Russell King (Oracle)" To: Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Cc: Andrew Lunn , "David S. Miller" , Florian Fainelli , Jakub Kicinski , Marek =?iso-8859-1?Q?Beh=FAn?= , netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, Vivien Didelot Subject: [PATCH RFC net-next 0/4] net: dsa: ocelot: phylink updates Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, This series updates the Ocelot DSA driver for some of the recent phylink changes. Specifically, we fill in the supported_interfaces fields, convert to mac_select_pcs and mark the driver as non-legacy. We do not convert to phylink_generic_validate() as Ocelot has special support for its rate adapting PCS which makes the generic validate method unsuitable for this driver. The three changes mentioned above are implemented in their own separate patches with one additional cleanup: 1) Populate the supported_interfaces bitmap 2) Remove the now unnecessary interface checks in the validate methods 3) Convert from phylink_set_pcs() to .mac_select_pcs. 4) Mark the driver as non-legacy Thanks. drivers/net/dsa/ocelot/felix.c | 31 +++++++++++++++++++++++++------ drivers/net/dsa/ocelot/felix.h | 2 ++ drivers/net/dsa/ocelot/felix_vsc9959.c | 16 ++++++++++------ drivers/net/dsa/ocelot/seville_vsc9953.c | 16 ++++++++++------ 4 files changed, 47 insertions(+), 18 deletions(-) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!