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=-3.8 required=3.0 tests=BAYES_00, 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 D7EAEC433E0 for ; Wed, 23 Dec 2020 15:50:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD0EE21D79 for ; Wed, 23 Dec 2020 15:50:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728261AbgLWPua (ORCPT ); Wed, 23 Dec 2020 10:50:30 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:38818 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbgLWPu3 (ORCPT ); Wed, 23 Dec 2020 10:50:29 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1ks6OM-00Dc5c-Q3; Wed, 23 Dec 2020 16:49:34 +0100 Date: Wed, 23 Dec 2020 16:49:34 +0100 From: Andrew Lunn To: Steen Hegelund Cc: "David S. Miller" , Jakub Kicinski , Rob Herring , Device Tree List , Russell King , Lars Povlsen , Bjarni Jonasson , Microchip Linux Driver Support , Alexandre Belloni , Madalin Bucur , Nicolas Ferre , Mark Einon , Masahiro Yamada , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC PATCH v2 8/8] arm64: dts: sparx5: Add the Sparx5 switch node Message-ID: <20201223154934.GE3198262@lunn.ch> References: <20201217075134.919699-1-steen.hegelund@microchip.com> <20201217075134.919699-9-steen.hegelund@microchip.com> <20201219202448.GE3026679@lunn.ch> <20201223143124.tr2vejqgpf2qsot2@mchp-dev-shegelun> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201223143124.tr2vejqgpf2qsot2@mchp-dev-shegelun> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Dec 23, 2020 at 03:31:24PM +0100, Steen Hegelund wrote: > On 19.12.2020 21:24, Andrew Lunn wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > > + port13: port@13 { > > > + reg = <13>; > > > + /* Example: CU SFP, 1G speed */ > > > + max-speed = <10000>; > > > > One too many 0's for 1G. > > Ah, but this is allocation for the port, not the speed. phylib will look for this property and change what the PHY advertises based on this. There are some devices with Fast Ethernet but with a 1G PHY, because they are cheaper. By setting max-speed=<100>; phylib will stop the PHY advertising 1000Base-T/Full and 1000Base-T/Half. I can imaging the same is used when the MAC can do 2.5G, but the PHY is 5G capable, etc. > This just used by the calendar module to allocate slots on the taxis > as requested. So I would say it is OK to overallocate in this case > (but you could argue it does not make much sense). Rather than misusing the max-speed property, it would be better to add a property with your specific meaning. Andrew