From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796278439; b=QtJBtfeAXVbzrea0wdiVWOOlt2UMLCA2qOfH9iMBMX+s94A8v+wiVEoDoR/b30iSYwoz VbL4O/CX8TQHz+28LP5XwWL+mZn6lDGM5+4kgkZT3f52+Jl98xRbfLxdTIGFO0ox26CG0 OQIylRYLdNMQqjlQUGq0AqecZp+IFMPoUm36EmMEAcELc2+OxJ6rIqeNG6yxovphr3n8v Dq/cpbcs8oLKuEBlNavrZfgBnk6M+4OdyhvPxlttBNJBIiW/Z7VXQNf0zbEAygfdl/A9i O0F7WUazLbPRQDMzUdUOHbCSyULO+PHxbx5H1yZXFQJn9RoOlPlnLTTKOxMRx5jnG2w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796278439; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Date:Subject: MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id: References:In-Reply-To:To:Cc:X-Mailer; bh=fvdTz3MyFg/Ftt/i49alKqetlPP8YLRxx5BcRUo0sBw=; b=qQVW78MkBxBakZIeUbxCz+nsjqYWZMJZECg8+ZI6dz5aVKILJINCDWNtiuyhEc6/oEJY KJQvovjkHGzzXOvqrb4Kx3OTFa2Mwue0D0A71mI/0hUoAJqvooBvF0DAxcbU1oBqZLGhI crlTvfOj1aUbkuOTOgV8cLN1kNNJkuam4X9rcCyb4Qk6oIJ45H5WnMPxq+rvfVgJCcWsP tkpatALz+Gax4VUVjZKfRQrzKYtz1lv/Znz8LRFQT3De85ADYGSlT4p/6nk8QM70bjpLg 2cry6WHGwA8DIkyiZrtG4mk0RdiZxgz2WvS/LYBlSGY0FPUFpnT1w+T7JzhZZHE5DXA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=telaak.dev; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.remote-ip=209.85.222.180 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5A06606A6AD for ; Thu, 3 Dec 2026 06:13:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D5A06606A6AD Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=telaak.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-94999a08973so1266735685a.0 for ; Wed, 02 Dec 2026 22:13:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796278438; x=1796883238; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fvdTz3MyFg/Ftt/i49alKqetlPP8YLRxx5BcRUo0sBw=; b=qHd7rdtC2MLp9aCt6HtAuDSXlNldJxxK/tX08aV/7GM1e9QfV/H0y3j3yrX/aQlfl2 HP1mGnkBdYOpWr8tl9JVAGOKWmoFMrUefKsXpXEdWYZZC+IJoaV/7Htdv4xL4y8llUgY tkx5cB3sXwDXX8E0Bk14QPOrGKKYVjO8qZ4kzzCiG0HEhdWRAE8Ii9b29gHkLpRjOLlG +flnTrO7hHMq/Wc3MZR5qEKJyKL5BAPvKfIz34C8XYeeBf1zYwnQI2CrIC28DDOqS+4E Pg87Ox243HzyYG0NKPpM3y3rpj33OVYCx8b1/EoQPEd4+7FFeq2yMSLnl5pxTB23WSXx KW7Q== X-Forwarded-Encrypted: i=1; AL+hErErui3Ahbh/uPXa97VM4Hr7+pyP+zNQgEK89wchdAv5Mh+Mbl5tY95IEz/WcBHNivG2GzYv2RZ77Ovdypg=@vger.kernel.org X-Gm-Message-State: APuU4Z9sIHIHsxYdlQnEO2gAkbrELPX3fTada2gg/AdS8Qn57rTnhAKb zpJ2Hbs21eqPXZi2UGV7zSBFNrlL6arW9xSS7x099JUn3MNDxEkQGekp X-Gm-Gg: AZFdTZdcyDlR/rcbX56MNCdqSnoSPSOVSdFrz5qTfEPMhT5EPUfQ0xLbic1/UV+n2Kv 6VpMstbF9JI85l2DRalSEl6EuQGxcGhUWv2SPT2P5Ba2W1ZmPEYmKa6iN41vT56G77731yEP/Hh vMFi2xsv4o+m058H01iFgBQgVTN13fDfr76oB6ZOEXrSk6/j5l5KSFfSuBVCOWvztbWvAOxdCqz D4MImKDjgZota2W5EnfP+SKFubr6GabrYvV9DVmj2sybJ5shns7VUd+Ur/M728IryhOy/93dLeJ orZ34fBqcjIfD77Ie6KJ4OooRX+ThXBY3Sff+/e8hDLagJ5OWPG+lv7G6Aq6RoRykL5oo4Ny5am KbeDgKVpvnK9khtJ7Gq33CWZYSgbd+9jaxUPW6LGu6TzGeS28IzwQFnhBZQwrRBUKhxdNCIf96z Me6zetxCi0AkMX7qTpsk0UtiYQLWdnGqPxuIIaxkFpmQ+FfEYQ43YK/0fYCotIIidmnGfAhDYTn vWrJS3hw54Kq2g9KtTEet7pGq5PwC3T9eIClzsNglpRJ3/TjxVoriUs/9T4Lx4Wlt0vGkCvlot4 WJrhbsnoXLP2GMds70Yf6JXPrHgRMacowBy2IfGRBshQHd/NyYDh7SzEvEWVD6T2ryIk8nHaanc OEAJuIZz7iZD6sxiXLt89vrc6q/jXK+cQYYlNYZ9/nEAfXdtmihmU/vsn5IrVZOiN75jwtM5SaI K8nU840fDO3HKAGvrqiU8bMa1u X-Received: by 2002:a05:620a:4606:b0:93f:22af:cce7 with SMTP id af79cd13be357-949ba7cbc42mr8041798685a.12.1796278437957; Wed, 02 Dec 2026 22:13:57 -0800 (PST) Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa ([71.68.170.161]) by smtp.gmail.com with ESMTPSA id af79cd13be357-949ca98d9d6sm3077137885a.18.2026.12.02.22.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 22:13:57 -0800 (PST) From: Joseph Telaak Date: Thu, 03 Dec 2026 01:13:50 -0500 Subject: [PATCH iwl-next v2 4/4] e1000: disable EEE on a CE4100 PHY under phylink X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261203-e1000-phylink-v2-4-0a8f80515363@telaak.dev> References: <20261203-e1000-phylink-v2-0-0a8f80515363@telaak.dev> In-Reply-To: <20261203-e1000-phylink-v2-0-0a8f80515363@telaak.dev> To: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Joseph Telaak X-Mailer: b4 0.16.0 The MAC has no LPI support. phylink only disables EEE in a PHY when the MAC implements the LPI operations, so the PHY keeps its default EEE advertisement. With EEE negotiated, an RTL8211E blinks its link LED about once a second while the link idles, and a link LED offloaded to the PHY no longer shows the link state. Implement the LPI operations with no LPI capabilities, so that phylink disables EEE in the PHY. With them, phylink also tells the PHY when it attaches to keep its receive clock running in LPI, as eee_rx_clk_stop_enable stays false. Signed-off-by: Joseph Telaak --- drivers/net/ethernet/intel/e1000/e1000_main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index 1ac21f2c18b8..a8ca9bb95a8e 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c @@ -1076,10 +1076,26 @@ static void e1000_mac_link_up(struct phylink_config *config, mutex_unlock(&adapter->phylink_lock); } +/* The MAC has no LPI. LPI operations with no LPI capabilities tell + * phylink so, and it disables EEE in the PHY. + */ +static void e1000_mac_disable_tx_lpi(struct phylink_config *config) +{ +} + +static int e1000_mac_enable_tx_lpi(struct phylink_config *config, u32 timer, + bool tx_clk_stop) +{ + /* Never called: no LPI capabilities */ + return 0; +} + static const struct phylink_mac_ops e1000_phylink_mac_ops = { .mac_config = e1000_mac_config, .mac_link_down = e1000_mac_link_down, .mac_link_up = e1000_mac_link_up, + .mac_disable_tx_lpi = e1000_mac_disable_tx_lpi, + .mac_enable_tx_lpi = e1000_mac_enable_tx_lpi, }; /** -- Git-155)