Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4616885rwd; Tue, 30 May 2023 07:45:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7CdBiI3vafh45HliWbPhu8ahlKis6zivavk8SV0ifgWWGFDRQxMEJ8qoywD5YInbyGqafS X-Received: by 2002:a05:6a00:181c:b0:63b:8dcc:84de with SMTP id y28-20020a056a00181c00b0063b8dcc84demr2966571pfa.4.1685457917328; Tue, 30 May 2023 07:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685457917; cv=none; d=google.com; s=arc-20160816; b=GnUhw479KBszpBY9HVdodc63H+Gk+ikDpBn04kpGB2XM+XcFq8gwDYZ3+XG3Va6T0N grmwuIA9kuCrcJIxAhBLg3wbVapA7MVDH8qcsA8cThFdXJ5Voske/Ld41JCfBvq2kly6 GO4QTdG1dtJdaP6odThBGWnzrd3EcSbqSyoAiMVlmIo8/sauL7tdb8hSN26IR11WZQEa haUQfrnZpVGDrojBrgr9f1f72BaVqt/0cy3x6Aeu825Rs0fP+KeTjC08zBRIegZE0H3g Y2nvXR/N92p28seBGLXyvAkoyWxiDWs7shX4O3LsWiHCVhkNI8ej1h06/FpIgu0JNQNT i69w== 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=FWAIGy3W6VRuHfHWmHtL4IHZGLEpQvK9/WLf1WisLfI=; b=aDe51V+YMq3gKzL1lWEKjCJG620vbFETWz7TARzJ6gN76Zckk2kTeN8TMHIPpkNuYh Jq5ZkbNK9pY3fuWmk6+coks8ETBBk704in8lKwmE8nPsG0UrTW7Pcf9UWS33Vb+GV4CF D9h94v0A0z4MQFpzbCOs0U13zf4Ib1h5KkFC78E3l1veSQyA4yiYGHpF6CyGdDEeVM2P VLEiLnsVIkjvUMVFo3ymgUEhDedjiSPASXhOZpG9dT6VQAejs6dwfSqy94tJ0AOKiTag fNHWPJ6xkJJGkQ9dGon+hh2QcGJNyEr4lbUIDyOSKg+RcM5IzO5siLEYcryPIZKdzl/Y vSkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=QsJSun8z; 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 d192-20020a621dc9000000b0063b1739532esi6571pfd.139.2023.05.30.07.45.05; Tue, 30 May 2023 07:45:17 -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=QsJSun8z; 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 S230507AbjE3OZb (ORCPT + 99 others); Tue, 30 May 2023 10:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbjE3OYa (ORCPT ); Tue, 30 May 2023 10:24:30 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4587171D; Tue, 30 May 2023 07:23:40 -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=FWAIGy3W6VRuHfHWmHtL4IHZGLEpQvK9/WLf1WisLfI=; b=QsJSun8z9mB/Mco6Uqic0npFOn J+Nfq1fixoi8UAwixInmQg0yHXy8gshY81qIm+lDlc/NAlnr/QZLZH+oqsCRdgXLnKy5XB/URA4Uo l0v6im7FYGjFGucV2X4rFcYiVJhAk8gO4jS7ftT7eGW6EkjsfqqV6pR19J8gsQ5iaU0U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q40Fs-00ELCp-5e; Tue, 30 May 2023 16:23:20 +0200 Date: Tue, 30 May 2023 16:23:20 +0200 From: Andrew Lunn To: Lukasz Majewski Cc: "Russell King (Oracle)" , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] net: dsa: slave: Advertise correct EEE capabilities at slave PHY setup Message-ID: References: <20230530122621.2142192-1-lukma@denx.de> <20230530160743.2c93a388@wsk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530160743.2c93a388@wsk> 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,URIBL_BLOCKED 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 On Tue, May 30, 2023 at 04:07:43PM +0200, Lukasz Majewski wrote: > Hi Russell, > > > On Tue, May 30, 2023 at 02:26:21PM +0200, Lukasz Majewski wrote: > > > One can disable in device tree advertising of EEE capabilities of > > > PHY when 'eee-broken-100tx' property is present in DTS. > > > > > > With DSA switch it also may happen that one would need to disable > > > EEE due to some network issues. > > > > > > Corresponding switch DTS description: > > > > > > switch@0 { > > > ports { > > > port@0 { > > > reg = <0>; > > > label = "lan1"; > > > phy-handle = <&switchphy0>; > > > }; > > > } > > > mdio { > > > switchphy0: switchphy@0 { > > > reg = <0>; > > > eee-broken-100tx; > > > }; > > > }; > > > > > > This patch adjusts the content of MDIO_AN_EEE_ADV in MDIO_MMD_AN > > > "device" so the phydev->eee_broken_modes are taken into account > > > from the start of the slave PHYs. > > > > This should be handled by phylib today in recent kernels without the > > need for any patch (as I describe below, because the config_aneg PHY > > method should be programming it.) Are you seeing a problem with it > > in 6.4-rc? > > Unfortunately, for this project I use LTS 5.15.z kernel. > > My impression is that the mv88e6xxx driver is not handling EEE setup > during initialization (even with v6.4-rc). In general, nearly every driver gets EEE wrong. I have a patchset which basically rewrites EEE. It has been posted as RFC a couple times, and i plan to start posting it for merging this week. But as a result, don't expect EEE to actually work with any LTS kernel. Andrew