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 56398C388F9 for ; Fri, 20 Nov 2020 00:01:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22D182224D for ; Fri, 20 Nov 2020 00:01:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727300AbgKTAA7 (ORCPT ); Thu, 19 Nov 2020 19:00:59 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:40052 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbgKTAA7 (ORCPT ); Thu, 19 Nov 2020 19:00:59 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kftr8-0081ur-E9; Fri, 20 Nov 2020 01:00:50 +0100 Date: Fri, 20 Nov 2020 01:00:50 +0100 From: Andrew Lunn To: Tobias Waldekranz Cc: Maxime Chevallier , Russell King - ARM Linux admin , Vivien Didelot , Florian Fainelli , Heiner Kallweit , "David S. Miller" , Antoine Tenart , Thomas Petazzoni , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: net: phy: Dealing with 88e1543 dual-port mode Message-ID: <20201120000050.GV1804098@lunn.ch> References: <20201119152246.085514e1@bootlin.com> <20201119145500.GL1551@shell.armlinux.org.uk> <20201119162451.4c8d220d@bootlin.com> <87k0uh9dd0.fsf@waldekranz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k0uh9dd0.fsf@waldekranz.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > E.g. at Westermo we make switches with M12/M12X connectors [1] that > sometimes have a 1G PHY behind a 2-pair M12 connector (for complicated > legacy reasons). In such cases we have to remove 1000-HD/FD from the > advertised link modes. Being able to describe that in the DT with > something like: > > ethernet-phy@0 { > mdi = "2-pair"; > }; We already have a max-speed property which could be used to do this. It will remove the 1000-HD/FD from the link mode if you set it to 100. Andrew