Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2890235rwd; Mon, 22 May 2023 06:01:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dUUjXGO9v5VLe9YAwcH6/nNIsdB/+1e9gWZ+pEupFtnuj0P2P/BvgPG7BAkwxxFDkLAnV X-Received: by 2002:a05:6a20:6a14:b0:103:883b:10c1 with SMTP id p20-20020a056a206a1400b00103883b10c1mr10448010pzk.41.1684760468908; Mon, 22 May 2023 06:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684760468; cv=none; d=google.com; s=arc-20160816; b=0yTbzffZajImeeaiuas6nzoYDLINFDKjNFb2zPRB1Z/e8hE2zgbi9YkPHxoumBB5vH za0XIBzs7Sc6sHmHaCCYdS7ff3dNo/MkecIKfx9lbq4VcrTi0hqC1yoS+CttUi9G8mDb tQhUmdjsKX9/fzrex0syZzwP2VgpTvKkKtsRVJ5kBu2OsB/WrHJkbcluqUnq4COjzufm bnDRG8SYz8rNdy/BSOHuo8w4QYkyG0F1KgrZo0FFGw+4JS5e7I2S1a/vXz+qeHHF0HBv dqq47JiqrC0Kofta6AN+5R/hMJEolSTDRrFXCSiYtOz0hjm2TdvFYH5vSG685WBbT6Fb EKrA== 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:dkim-signature; bh=hPu/AazTv/w0F2gJ1g4NuU0UDYvLNu6oyiHlrR50Mkk=; b=qA261dnaeEw6jCPWlBCZ1/5f7zXNxU9WPJlu6eK3JGbsyMB84X794pyAe9FLbQWPwW ZfBjF2LW2ZWepDNEtbS+jKnhBDXQaTYVubrzQ0qPDJiq2Q+ZlHiwjHHFCfmAQKDo0VGf Bi+myxiLeC/vBTRa7z2zFqkTs66KWI3gVq0l3uMYFXB8k8N/4cOKJ8VtqqMooB9VMgD+ r18uuz1DsEgDkVf5c9Pn+h5w2RoqJ+4j+KGoANtERDz3GJAi3uVwi7vnItNiyupEJGxE dRC41UnCEuXMwrqwSQV3OHCiIDRAd8vBOtOoC4glDbMmpaQ7HwCwZ7x1npGlEHsBvB72 ZtVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qe6mf5vU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j127-20020a636e85000000b00534919e40fcsi2407843pgc.626.2023.05.22.06.00.47; Mon, 22 May 2023 06:01:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qe6mf5vU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233707AbjEVMjC (ORCPT + 99 others); Mon, 22 May 2023 08:39:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233979AbjEVMiz (ORCPT ); Mon, 22 May 2023 08:38:55 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A58CE41; Mon, 22 May 2023 05:38:33 -0700 (PDT) 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=hPu/AazTv/w0F2gJ1g4NuU0UDYvLNu6oyiHlrR50Mkk=; b=qe6mf5vUlwVjFJV9D5vtSUnTk1 nca5JvSV1SUqZ18V0lTp3xbqGrmpElOUrzTJZ2ypwc+n0BKpF0PWI9/MV/lvm22Aed5w0sHpYiAgV u68YGunI90U+Oyjr5S94dnx5a7WSzNSG3jygwcqanIs4Mqb7g7yCo1f4looQ8cu/n5h8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q14Vm-00DXQ1-MQ; Mon, 22 May 2023 14:19:38 +0200 Date: Mon, 22 May 2023 14:19:38 +0200 From: Andrew Lunn To: Alexis =?iso-8859-1?Q?Lothor=E9?= Cc: "Russell King (Oracle)" , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Rob Herring , Krzysztof Kozlowski , Conor Dooley , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, paul.arola@telus.com, scott.roberts@telus.com, Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH net-next v2 7/7] net: dsa: mv88e6xxx: enable support for 88E6361 switch Message-ID: <237dbb7f-8979-4435-a099-95bb5d093910@lunn.ch> References: <20230519141303.245235-1-alexis.lothore@bootlin.com> <20230519141303.245235-8-alexis.lothore@bootlin.com> <1c104034-b61f-5242-40fa-339de59ac9c9@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c104034-b61f-5242-40fa-339de59ac9c9@bootlin.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Not exactly related to this patch, but please do not rely on this "max > > speed mode" - please always ensure that you specify the phy-mode and > > fixed-link settings for CPU and DSA ports in firmware. Thanks. > > I would like to make sure to fully understand your point: > - when telling so specify phy-mode and fixed-link in firmware, you mean > device-tree, right ? > - when checking for code and execution flow, I observe that port_max_speed is > always called and its output is always used to configure shared ports mode in > mv88e6xxx driver. Are you telling that eventually, the whole mv88e6xxx driver > should stop relying on port_max_speed_mode for shared ports ? Yes, the concept of port_max_speed_mode causes problems for PHYLINK, and we want to remove it. Russell and i have been updating DT descriptions adding fixed-link and phy-mode properties to all mv88e6xxx systems so that it is not needed. Either at the end of this cycle, or the beginning of the next we will change the code to actually enforce this. Andrew