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 X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 54DCDC2D0C2 for ; Fri, 3 Jan 2020 20:25:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 20BFE20866 for ; Fri, 3 Jan 2020 20:25:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="Z3vMqoJv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728514AbgACUZL (ORCPT ); Fri, 3 Jan 2020 15:25:11 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:47012 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728490AbgACUZK (ORCPT ); Fri, 3 Jan 2020 15:25:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender: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=9mxXhdbtgN94d+uB0sJfQe/q2KayN2aAHVTKpNWCx6k=; b=Z3vMqoJvM9r53K1Dq/uexXxWwU jsaxIMsOOH8gK/gmoSnSp5dGjECGLPbWdIK96x1ROs4Ab35f2A3QB9C2xku5kJVhVXI3WhvtonBeO l5no/SL5S94DyFBeZQ0Z87L1+He4EuaEE20+ueca4tPUqmxuBezEY9Lgiai5foupmXl4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1inTVI-0002pw-OO; Fri, 03 Jan 2020 21:25:04 +0100 Date: Fri, 3 Jan 2020 21:25:04 +0100 From: Andrew Lunn To: Russell King Cc: Florian Fainelli , Heiner Kallweit , "David S. Miller" , Jonathan Corbet , Kishon Vijay Abraham I , linux-doc@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next 2/2] net: switch to using PHY_INTERFACE_MODE_10GBASER rather than 10GKR Message-ID: <20200103202504.GQ1397@lunn.ch> References: <20200103115125.GC25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > For Marvell mvpp2, we detect 10GBASE-KR, and rewrite it to 10GBASE-R > for compatibility with existing DT - this is the only network driver > at present that makes use of PHY_INTERFACE_MODE_10GKR. > > Signed-off-by: Russell King > @@ -5247,6 +5247,9 @@ static int mvpp2_port_probe(struct platform_device *pdev, > goto err_free_netdev; > } > > + if (phy_mode == PHY_INTERFACE_MODE_10GKR) > + phy_mode = PHY_INTERFACE_MODE_10GBASER; Hi Russell Maybe consider adding a comment here, or suggest readers to read the commit message of the patch that added these two lines to get the full story. Apart from that: Reviewed-by: Andrew Lunn Andrew