Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B68FC636C9 for ; Tue, 20 Jul 2021 13:56:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B866D6120E for ; Tue, 20 Jul 2021 13:56:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239365AbhGTNOH (ORCPT ); Tue, 20 Jul 2021 09:14:07 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:36136 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239127AbhGTNK7 (ORCPT ); Tue, 20 Jul 2021 09:10:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Q6bDd5TNVG8e1G5OAXjMJyRhQCJI/3WEnIvK8Skz+zY=; b=iHgW+0slbheFY36U4Z+vcmld4v GGHiKkxb4as1GKINiG1K5CFRCEXGlSkYxxC4vnE3UR/bYx5FdJIVcwjIbwUTE7FArxAsfu0KsCGuj 4eNdIeFwebX2bFOyqcRV6xplL/w07Qbge3g/ST+JpowEjxbLguQU7cc98zbqcH1CAcso=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m5q9n-00E3iO-OV; Tue, 20 Jul 2021 15:51:35 +0200 Date: Tue, 20 Jul 2021 15:51:35 +0200 From: Andrew Lunn To: Russell King Cc: Heiner Kallweit , "David S. Miller" , netdev@vger.kernel.org, Ioana Ciornei , Jakub Kicinski Subject: Re: [PATCH net-next] net: dpaa2-mac: add support for more ethtool 10G link modes Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Jul 20, 2021 at 10:57:43AM +0100, Russell King wrote: > Phylink documentation says: > Note that the PHY may be able to transform from one connection > technology to another, so, eg, don't clear 1000BaseX just > because the MAC is unable to BaseX mode. This is more about > clearing unsupported speeds and duplex settings. The port modes > should not be cleared; phylink_set_port_modes() will help with this. > > So add the missing 10G modes. Hi Russell Would a phylink_set_10g(mask) helper make sense? As you say, it is about the speed, not the individual modes. Andrew