Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4632680rwd; Tue, 30 May 2023 07:58:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NtQ1Noz4BkVqfDJqE5s5mjV/YocfRLR04tNZHKU8EMQ+B9heSy62lxAm1E0cR/1W0smAR X-Received: by 2002:a05:6a20:7fa9:b0:10e:ce12:356c with SMTP id d41-20020a056a207fa900b0010ece12356cmr2999075pzj.17.1685458681503; Tue, 30 May 2023 07:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685458681; cv=none; d=google.com; s=arc-20160816; b=rL6zTZ2AEDzwUgjCPYpkfAmpmkYwrWsCFHWPJfoe+/Q2RK1fM0gL6hI1smTXrm5eMb qTxIh5F2KrPdXuq4G6LreDUNkQDGp6AqnAVrm0hIV4XtxXZPRQWrgHw+3aNjWNyjrRaV S0Vf6ekEM5wNxnJXvTCGNxFg2U7ASMZL1y2IM3jsvJycFcoyDluinKLqps7iZvaW/1xy 5XmtwFqPTxTM/PJ8TyHHk7c0RFCkrIGbtlBbejlAcSh1a4h9qYlVuM3heQ0zytYZdMMq w4w8O2xEqsvZKplxMYd4+cPfNLj/sXUhB1nO/+Q5ZpnrIWmUU39eDMgJWcgCFGLgeW4I V5/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/lcVrnX7+XrRCgaaZHH0kp2gaMygkIh7ZjhZqlrEWnQ=; b=CexeKl1D3pusZoW97/sq2TOVqozqZTMcd0yqGTikeaCNW/h/DE004mqDYjER8M0PVw tGcxWyNZ2kJj/dSI1vQth/qB9hyEtEN/1YdCfkDGxJiruS+tE8r9HQ8UTkp/SXHiSunp l4ZVilzQsq1uRQmxYOflPOAPDiRjP0cknKqc3MbwnR+zlzAekloxjrqU9XZ7uJSYaAUl iVGVyeNlWxkX0vhmVoNq+iNGWE4r5nFL+o/R2hy2twteEDuQLc5UwgdHiNlF24+l885U rvxmInN+UUZdTRpdXj10evPYPeO1zxvEv4ECaHRV9pL/jgBERtkJCZF9+9o1vOoCDX8s X16g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=EnVrVJhk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b0053490e8df50si9630249pgk.223.2023.05.30.07.57.47; Tue, 30 May 2023 07:58:01 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=EnVrVJhk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232321AbjE3OmD (ORCPT + 99 others); Tue, 30 May 2023 10:42:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232201AbjE3OmB (ORCPT ); Tue, 30 May 2023 10:42:01 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B35F9C; Tue, 30 May 2023 07:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/lcVrnX7+XrRCgaaZHH0kp2gaMygkIh7ZjhZqlrEWnQ=; b=EnVrVJhkHR5/r+niPhrQYvRxwK UuKXFO1S9WWlxix5yCgjlvETE7GYbOOhPqaQhkNlopxJ7Zg5O2Qyj4u16953KxgXNZqamA0PMO+4y kIi3rTydXyld7uRPUC2DwwyU4OzeqITd9ayVOC/++ckz2gcmx45dbBcV8t3771hdWfBJaYowjhjoP xZwKvS9Kx4EMKPuDiBlO7UGojuQxe9eyyx8EfYUol+YfyUbRwyG11U27kQ/1Nr1ysTOwbxWwWd1AK PaIbhAlNauopBYk9gLmKdKyJBt5s1LnZfTkn534vq/b7nozqh04Wj8RWsL11NpKiDaJTYRcJPuaSC 0jvxhMPQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:38996) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q40Xt-0002x1-CH; Tue, 30 May 2023 15:41:57 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q40Xs-00088R-8O; Tue, 30 May 2023 15:41:56 +0100 Date: Tue, 30 May 2023 15:41:56 +0100 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Lukasz Majewski , 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> <35546c34-17a6-4295-b263-3f2a97d53b94@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35546c34-17a6-4295-b263-3f2a97d53b94@lunn.ch> Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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:26:49PM +0200, Andrew Lunn wrote: > > So, I'm wondering what's actually going on here... can you give > > any more details about the hardware setup? > > And what switch it actually is. I've not looked in too much detail, > but i think different switch families have different EEE capabilities. > But in general, as Russell pointed out, there is no MAC support for > EEE in the mv88e6xxx driver. ... except for the built-in PHYs, which if they successfully negotiate EEE, that status is communicated back to the MAC in that one sees MV88E6352_PORT_STS_EEE set, which results in the MAC being able to signal LPI to the PHY... and I've stuck a 'scope on the PHY media-side signals in the past and have seen that activity does stop without there needing to be any help from the driver for this. At least reading the information I have for the 88E6352, there is no configuration of LPI timers, nor any seperate LPI enable. If EEE is enabled at the MAC, then LPI will be signalled according to whatever Marvell decided would be appropriate. For an external PHY that the PPU is not polling, the only way that we'd have EEE functional is if we forced EEE in port control register 1 on switches that support those bits. In other words setting both the EEE and FORCE_EEE bits... -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!