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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 4C6CBC433E0 for ; Mon, 22 Jun 2020 18:44:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2DFC62073E for ; Mon, 22 Jun 2020 18:44:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730111AbgFVSox (ORCPT ); Mon, 22 Jun 2020 14:44:53 -0400 Received: from mail.bugwerft.de ([46.23.86.59]:58032 "EHLO mail.bugwerft.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729605AbgFVSox (ORCPT ); Mon, 22 Jun 2020 14:44:53 -0400 Received: from [192.168.178.106] (p57bc9787.dip0.t-ipconnect.de [87.188.151.135]) by mail.bugwerft.de (Postfix) with ESMTPSA id 8AA8042B84D; Mon, 22 Jun 2020 18:44:51 +0000 (UTC) Subject: Re: [PATCH] net: dsa: mv88e6xxx: Allow MAC configuration for ports with internal PHY To: Andrew Lunn Cc: netdev@vger.kernel.org, vivien.didelot@gmail.com, f.fainelli@gmail.com, linux@armlinux.org.uk References: <20200622183443.3355240-1-daniel@zonque.org> <20200622184115.GE405672@lunn.ch> From: Daniel Mack Message-ID: Date: Mon, 22 Jun 2020 20:44:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200622184115.GE405672@lunn.ch> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 6/22/20 8:41 PM, Andrew Lunn wrote: > On Mon, Jun 22, 2020 at 08:34:43PM +0200, Daniel Mack wrote: >> Ports with internal PHYs that are not in 'fixed-link' mode are currently >> only set up once at startup with a static config. Attempts to change the >> link speed or duplex settings are currently prevented by an early bail >> in mv88e6xxx_mac_config(). As the default config forces the speed to >> 1000M, setups with reduced link speed on such ports are unsupported. > > Hi Daniel > > How are you trying to change the speed? With ethtool for instance. But all userspace tools are bailing out early on this port for the reason I described. Thanks, Daniel