From mboxrd@z Thu Jan 1 00:00:00 1970 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 19E27C433FE for ; Fri, 25 Feb 2022 16:19:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242833AbiBYQTz (ORCPT ); Fri, 25 Feb 2022 11:19:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242834AbiBYQTx (ORCPT ); Fri, 25 Feb 2022 11:19:53 -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 43BF662126 for ; Fri, 25 Feb 2022 08:19:21 -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=hFmdtXg0SPv7GRCL4ppKTdYZhOQgvG3GtosVpOpG6Xc=; b=VqTyDnbcYXtKTS/EIaSTWN5v6x mNiqwQp/pKGEEtCtLFzKLGi/HvPmR99Mm5SP2p5lqrpP6dLs1Oyk5iAvRFOxegor9qjFceqEUthkQ q3oZzWFE5xTfiP2Vy1pNMF7sq4h3Jt91Xtynq+Q2r5fFs9CFRumfblXzFQg2rmYT/hVYSRRPMhtgS KNgHWZcvsj+q7KG7bCnvuSAW5w5lkhGm4RzvxJCNe2mz3je43qVviQXvAlRjzAfBbD1uy6PAXN0gg tc0BzU78fWNcGwBiJdQ6HJ7+7LQfVFbplOx2Hwmz+KxMlASDy6BJ00V2xXnaFnritKMBXWq0VPM5P y2guHDqg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57502) 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 1nNdJH-0005gw-GD; Fri, 25 Feb 2022 16:19:11 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nNdJG-0003Dr-Ah; Fri, 25 Feb 2022 16:19:10 +0000 Date: Fri, 25 Feb 2022 16:19: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 net-next v2 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. RFC -> non-RFC: add reviewed-by/tested-by's, update patch 1 to set the supported_interfaces bitmap in felix.c rather than the sub-drivers as requested by Vladimir. non-RFC -> v2: fix build error introduced in patch 1. drivers/net/dsa/ocelot/felix.c | 30 ++++++++++++++++++++++++------ drivers/net/dsa/ocelot/felix_vsc9959.c | 7 ------- drivers/net/dsa/ocelot/seville_vsc9953.c | 7 ------- 3 files changed, 24 insertions(+), 20 deletions(-) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!