Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp815168rwd; Wed, 31 May 2023 06:00:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64nkpu7kuaRLfUthWfdRYuJwi2PnLCmrID6bTls6oS/zNfLoPdCkRpNsI8xpexKvxHIr03 X-Received: by 2002:a17:902:db08:b0:1af:d6fb:199c with SMTP id m8-20020a170902db0800b001afd6fb199cmr15018982plx.16.1685538015997; Wed, 31 May 2023 06:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685538015; cv=none; d=google.com; s=arc-20160816; b=ZysOHgBiyBcwjk+nkvnz8kYtn0bEnQBvIhdtElwgeWKSEMgI2DJ8KqbRwOCfw9+1y+ fkJj3gqWf0mh6DKyEQyYwmviNeZlO7C5n2OJccMznwFa3TMK126xf85o9y5nntjBGBZs X9+2RNyDN8wT2yOu/nT7rYRX1gt8JQaVotbP0PyhnaCMy4IqpiFAFZ8hA+xQjZ0HYp6K R30A+LczKNnvH/R6h0Q8GjPwTxEKWptdPc00q36NPgLfimf/VhHv/dEMCNFtGIreeHiF nR6rmvO/GM0HcMLuk36PQN+Tk9gwmgU8uFeCzrb5lJEax+RAPqTb9xIkMrGgFsY6EZSo ymoA== 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=9a9sWcV3B1HupudEIN770V6gR2bhvM4pEaGkOVzI7Dg=; b=Aih8zmtd+o1ZHVNxE4hUzdO6xlccob2UEQjuQ2FNzo8op8hx8y/7K/4BSt9/cYGPnE D8EXSkNH9bkFSvyCEvaXhMf2QqIUNIszu3HtrFNwdWCNJ7awmAtDfb5tfqV3u1Mw+qys 4wNZLWcttA0Ur+hYb2+eDUjavsRWGzQ+YzfTp5+ftcB13oQTpwn/lbDvdPVT83wbKWIm 5HfbVuFSARzp8VTcigBFb2anKYJCxclJsQCK5NkPf5WYx73lciigKg2Ye5H/R4WJhS6s LoJCAaIUWRY1n9eustIE0xAVZDIDB6rxZiaauxKmQcbXD7WGmem2Onjk1/3RnB0fljLt HtgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=6Qf3UDOa; 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 n3-20020a170902e54300b001acb03ca5aasi813966plf.612.2023.05.31.06.00.00; Wed, 31 May 2023 06:00:15 -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=6Qf3UDOa; 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 S236269AbjEaM6N (ORCPT + 99 others); Wed, 31 May 2023 08:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236204AbjEaM5h (ORCPT ); Wed, 31 May 2023 08:57:37 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC6A3E47; Wed, 31 May 2023 05:56:58 -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=9a9sWcV3B1HupudEIN770V6gR2bhvM4pEaGkOVzI7Dg=; b=6Qf3UDOaSEL6pVq3e6HbaJSGSo eoeenu6PzU7F7oFw2BgTfA9SxiECFR+nEK5Aflf4i3R5rqyaJtjkmUD/qjQ2xQjblcsYqRVRSFOWG ifxktaLOrzhVsYlGkyNaBt1eb8Y4x70wdvcYNNWDSnkDLtAM/+fYsm7uLB4r4s67Opms=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q4LNM-00ESZe-Ov; Wed, 31 May 2023 14:56:28 +0200 Date: Wed, 31 May 2023 14:56:28 +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: <1a3342eb-5a0f-486d-90af-4e052760cf7b@lunn.ch> References: <20230530122621.2142192-1-lukma@denx.de> <20230530160743.2c93a388@wsk> <35546c34-17a6-4295-b263-3f2a97d53b94@lunn.ch> <20230530164731.0b711649@wsk> <20230531104346.2a131c42@wsk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230531104346.2a131c42@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 > Thanks for the detailed explanation. > > With "switch" setup - where I do have MAC from imx8 (fec driver) > connected to e.g. mv88e6071 with "fixed-link", I do guess that the EEE > management is done solely in mv88e6071? So you have the MAC-MAC connection? No back to back PHYs in the middle. If there is no PHY, linux will not do anything with EEE. What happens will depend on the reset defaults of the switch. For the FEC phy_eee_init() will return false, so i expect EEE is disabled. > In other words - the mv88e6071 solely decides if its internal PHY shall > signal EEE to the peer switch. Handling EEE in the mv88e6xxx driver is something on my todo list. But i don't expect it to happen soon. And before it will happen we actually need to decide how the user API should work. Andrew