Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2432608pxu; Sat, 28 Nov 2020 13:59:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXtzNm268EGC+jyEq0cRvb7UPjlec7rluL3QXFpNVDfeAhpixudPVqud8t84ZZtYCNvka7 X-Received: by 2002:a50:ccdb:: with SMTP id b27mr14223527edj.253.1606600747852; Sat, 28 Nov 2020 13:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606600747; cv=none; d=google.com; s=arc-20160816; b=DLSVgkSCzgIzE6uIPRHKubsJavejEeiveP8XaQv+n1LsW1mACFqNZ1Hh8IrpZi820E XDZYj2ihmNv3eN7RjhOtX8x1oHcqJXRu1KPitdA5MPOPgCz2gJwDUwGMfgmLIG2mQTPP Am82sqyRnWIx9YR0RUMCAOwFRkej+hWbkL/gXvZa2wB3loS8Kzt97GL0Yv05HHYcRp1L IxU56+Q3Dg3hWnIL2ztpnq7UCluVW9nL24NbtKL4qIt+UPFhJlEIPKsHgvCt2G5ubetB 0rQ5igz7fvP/QgiGqJRJ5kfDDtk9NIJOA7t1v07IjotRX/uO/WtJBTK2QyHxj0IaSY33 Z16w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=aboCgsVTq6Ghg9TMocRVrZ9cs6sllZZTrBN7AZLH4qI=; b=OEYJsRm+5HjWdT6wHYsQptMhBZx0UYsqSmHE6xH60jmStsN3RacoVasHl/ss3VqXFg Zjk14LBpTvCT7qtBC8jH13G6KdZCy1cE00H4UtgK177DP+OO/1tY8p+WSKSTSrgfcQBV THg/3mKApCUsxgwCszSsMJ4XAtMH6uWhFlKqUqYg8ylk/GCU/Dax2UyQdYIky8se9lU3 HXNExNt8R7joi65ydsII4/54ZwmRzvEyIDL9qQW3nzGXE8P4R3HojX9OtzDgx8VkUHVl eUQjkFvyv93NPGzYfHXSVqbWuf1De7AWjPL/9QsekGHayiT/SjoExChoELwGpzLcdLHf c4gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si1764703ejb.701.2020.11.28.13.58.45; Sat, 28 Nov 2020 13:59:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404264AbgK1VzY (ORCPT + 99 others); Sat, 28 Nov 2020 16:55:24 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:44807 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387651AbgK1UIe (ORCPT ); Sat, 28 Nov 2020 15:08:34 -0500 X-Originating-IP: 86.194.74.19 Received: from localhost (lfbn-lyo-1-997-19.w86-194.abo.wanadoo.fr [86.194.74.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 89999E0003; Sat, 28 Nov 2020 20:07:51 +0000 (UTC) Date: Sat, 28 Nov 2020 21:07:50 +0100 From: Alexandre Belloni To: Russell King - ARM Linux admin Cc: Andrew Lunn , Steen Hegelund , "David S. Miller" , Jakub Kicinski , Masahiro Yamada , Lars Povlsen , Bjarni Jonasson , Microchip Linux Driver Support , Microsemi List , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/3] net: sparx5: Add Sparx5 switchdev driver Message-ID: <20201128200750.GK1296649@piout.net> References: <20201127133307.2969817-1-steen.hegelund@microchip.com> <20201127133307.2969817-3-steen.hegelund@microchip.com> <20201128190616.GF2191767@lunn.ch> <20201128193707.GP1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201128193707.GP1551@shell.armlinux.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, On 28/11/2020 19:37:07+0000, Russell King - ARM Linux admin wrote: > On Sat, Nov 28, 2020 at 08:06:16PM +0100, Andrew Lunn wrote: > > > +static void sparx5_phylink_mac_config(struct phylink_config *config, > > > + unsigned int mode, > > > + const struct phylink_link_state *state) > > > +{ > > > + struct sparx5_port *port = netdev_priv(to_net_dev(config->dev)); > > > + struct sparx5_port_config conf; > > > + int err = 0; > > > + > > > + conf = port->conf; > > > + conf.autoneg = state->an_enabled; > > > + conf.pause = state->pause; > > > + conf.duplex = state->duplex; > > > + conf.power_down = false; > > > + conf.portmode = state->interface; > > > + > > > + if (state->speed == SPEED_UNKNOWN) { > > > + /* When a SFP is plugged in we use capabilities to > > > + * default to the highest supported speed > > > + */ > > > > This looks suspicious. > > > > Russell, please could you look through this? > > Maybe if I was copied on the patch submission... I don't have the > patches, and searching google for them is a faff, especially > when > > site:kernel.org 20201127133307.2969817-1-steen.hegelund@microchip.com > > gives: > > Your search - site:kernel.org > 20201127133307.2969817-1-steen.hegelund@microchip.com - did not > match any documents. Suggestions: Make sure that all words are > spelled correctly. Try different keywords. Try more general > keywords. > http://lore.kernel.org/r/20201127133307.2969817-1-steen.hegelund@microchip.com does the right redirect. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com