Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4623036rwd; Tue, 30 May 2023 07:49:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zX0E37D7gbvhUir/iwGdSDEE+aOnFK2E2uV88Whz/7L+P7KmN+uRK2+K2dlP55N/XlZU+ X-Received: by 2002:a17:90b:38cf:b0:247:afed:6d62 with SMTP id nn15-20020a17090b38cf00b00247afed6d62mr2833953pjb.46.1685458182988; Tue, 30 May 2023 07:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685458182; cv=none; d=google.com; s=arc-20160816; b=GuUt+swP7VMZ1o5XSqp1juUo/2NHu0Vs+Iv7HxOSBncO85WtoeO4bL/rfL5JAQ1ES7 Xg7Xlk7TYasHVboGwVKwFr67yY+kH5z17QyjGLfs9OdQ3T6a7z1J7PoGwtPd5uvAJBpC XET2CiMftZyZxWUbOyqGm8dNqHpIrn+JtHewxl65sOUT4elb2Jl3WVSqi5W3LlKii4BN VrUKHpFRSmn02FyPiGEkX874yPgmXPhzMM/ZZ/zFF6mgKOn5A/Se80ltKaGL9bV25lOR 8O6GayVYrOmX0hS/2WX6nplemvMGfBSTir701MUefrxI7uL6r11h8hE12+asS+QoShAw A2FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:organization:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=RP5mZjYaDjVA5mhz0Ff8ESEjp4pyJWEbkoKv35RFyzU=; b=Tz3aMMnQi3j6ClLsSKkJyxU4hqB8SEcD/3Vl2JUHeM9bIvNDS1mFOW5NPVL+YeXqKv 48e/2576yzNAPXegKS4VLayReudzKVl+VmEF8ocEEPcQMtHxlLAncQ21haKb/le+AC1Y yzGvkUmPog9tOS/yamFdYkAWsjPe8WPpqkT0pLb22ubYJoLZVtQiilkimEfplqoO9m9A u5kDAXxdjvCQKuGt2qFcIf/rlUTQ+T/dzsJbI+v/hRwQ8bN7U2mLC44bxvKFaEQL/EgE KMew6Dt/oRIk5F+JazRUxLPW8LlZ2/3jq8iX9HZ7Iilz0WPdJQTp7Ukl6kvKjrvbmHHS BE0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=A9x9Utiv; 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=denx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my12-20020a17090b4c8c00b002500dd30da9si11225016pjb.6.2023.05.30.07.49.29; Tue, 30 May 2023 07:49:42 -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=@denx.de header.s=phobos-20191101 header.b=A9x9Utiv; 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=denx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232435AbjE3Orn (ORCPT + 99 others); Tue, 30 May 2023 10:47:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232353AbjE3Orj (ORCPT ); Tue, 30 May 2023 10:47:39 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703A4C5; Tue, 30 May 2023 07:47:35 -0700 (PDT) Received: from wsk (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AEA8284726; Tue, 30 May 2023 16:47:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1685458053; bh=RP5mZjYaDjVA5mhz0Ff8ESEjp4pyJWEbkoKv35RFyzU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=A9x9UtivGCTKaN8Cq9EdEGxj3DsQ2nr58U/pJ0t7xlobllwQ8xLxApN63q4T2JaC2 GDgpd8+b38OZNN3EgxoYglg21vlST2NbXaSve7x7jXscBlyRSinXPr2e4hH9ydKq2R 0+C5ba94FKhaVQaac4AFSLqy3UrUb7q5YFFxbeLLFSe7M0wYF8ArF+eIUnOyba5Znz iNqmrQGv8m/5U9INiglzm5OWcZnJzdXQwjF3SyplT7qg8TpFHBBjGgsc8SpJjw5BQr Tns0LGxRQaKopm+4A5NRtOk7Bx128q/GTMKn+hv2LSMqRG4MTnXzOrsC9NSc7sgLUq +ib4GdM7LcsMw== Date: Tue, 30 May 2023 16:47:31 +0200 From: Lukasz Majewski To: Andrew Lunn 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: <20230530164731.0b711649@wsk> In-Reply-To: <35546c34-17a6-4295-b263-3f2a97d53b94@lunn.ch> References: <20230530122621.2142192-1-lukma@denx.de> <20230530160743.2c93a388@wsk> <35546c34-17a6-4295-b263-3f2a97d53b94@lunn.ch> Organization: denx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/l7qCvXq/FTQDT3bLEkM2sDq"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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_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 --Sig_/l7qCvXq/FTQDT3bLEkM2sDq Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Andrew, > > So, I'm wondering what's actually going on here... can you give > > any more details about the hardware setup? =20 >=20 > And what switch it actually is. It is mv88e6071. > I've not looked in too much detail, > but i think different switch families have different EEE capabilities. Yes, some (like b53) have the ability to disable EEE in the HW. The above one from Marvell seems to have EEE always enabled (in silicon) and the only possibility is to not advertise it [*]. > But in general, as Russell pointed out, there is no MAC support for > EEE in the mv88e6xxx driver. I may be wrong, but aren't we accessing this switch PHYs via c45 ? (MDIO_MMD_PCS devices and e.g. MDIO_PCS_EEE_ABLE registers)? >=20 > Andrew [*] - maybe it is possible via some "reserved" registers. However, there are "register pages" for EEE, which allow tuning timers. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/l7qCvXq/FTQDT3bLEkM2sDq Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmR2DIMACgkQAR8vZIA0 zr3AjAgAtbAzj9ESVpzSo3QNSuO9KOphrBagbND3PolryZptPV6XhIg2jqxqLM+q zN4Di8DnRtkQ2CuD9pVUd2iACa+CKQy6Q/tOhAWdi1XH13+Iblovy4w/hSBDoOgu uXdGc+ps4cnmfPI60/9CT6BtbXNDwWM4egt9F9WqOA4PHR3CPurUfzd16U76Qtyn r3XkhYx3R1TuJQ3SMhWu4l9d/XAxO6f1HwqeRdmN6r8ylqReaQ9+m/BlKtlRMKjG ID3DhH0BJOmjr8WTe33PeJPzFDiqbt0GA80ycU7TRSjgNLNzUyy2JcGQ2QWZ9Y0B yYQuE4NB02vYFLeHdENRCTG9Pw/5mg== =JV1w -----END PGP SIGNATURE----- --Sig_/l7qCvXq/FTQDT3bLEkM2sDq--