From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 269F24C97; Tue, 11 Nov 2025 00:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762822569; cv=none; b=rGjG7n6cBfXoR1YmlT/1BTR/Obvxa+TN/v5bYXJOvXtmjsfuf9ovKoLvKV/lN4gR907HMgRbdqPlDBxP+NmHVOTmNID7MU8ooKGcg4ByILy19S6ywNg/BOVzEmfxUHC+pGIaclYX0Cwvofc9NdJNI0k0baosFI68cCeYSfUdlYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762822569; c=relaxed/simple; bh=3jhcBLkF1a52vSg6ZPGvE21dPTTzsvNbZAtvEO5O5hk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Fr/zmXRzFlq4Up7mMxVryurOOKIjtukFlcBxgx6E+qoBZhAWZPgS1mLAmjAW0ZxdWxFbeF93BtYZy5wrnJyjUru3yMVsycFP992hL0btJVQGtqfwmvEXNIZHA6xIg+7VrW0d5G65E3Vfz3Hsb3/q7+YjI0DTsVs4hRnE575qfXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lKxnaL/K; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lKxnaL/K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B25D1C4CEF5; Tue, 11 Nov 2025 00:56:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762822569; bh=3jhcBLkF1a52vSg6ZPGvE21dPTTzsvNbZAtvEO5O5hk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lKxnaL/KdkFa62uVeUihy1B+9Aa8xseL/11eRHPuzEkCSDWk2YMpncOaLwH/g+sjL jlPA6cVxPikjhOB63bThVTmNpLg5BQFDE4IbuY+VeDbKarARipQtQAsCBucuMkW2AA fXtLoNg10nPXUkF86wWepQvPebgEOX3rzmv/Tupk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Emanuele Ghidoli , Andrew Lunn , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.12 076/565] net: phy: dp83867: Disable EEE support as not implemented Date: Tue, 11 Nov 2025 09:38:52 +0900 Message-ID: <20251111004528.670769838@linuxfoundation.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251111004526.816196597@linuxfoundation.org> References: <20251111004526.816196597@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Emanuele Ghidoli [ Upstream commit 84a905290cb4c3d9a71a9e3b2f2e02e031e7512f ] While the DP83867 PHYs report EEE capability through their feature registers, the actual hardware does not support EEE (see Links). When the connected MAC enables EEE, it causes link instability and communication failures. The issue is reproducible with a iMX8MP and relevant stmmac ethernet port. Since the introduction of phylink-managed EEE support in the stmmac driver, EEE is now enabled by default, leading to issues on systems using the DP83867 PHY. Call phy_disable_eee during phy initialization to prevent EEE from being enabled on DP83867 PHYs. Link: https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1445244/dp83867ir-dp83867-disable-eee-lpi Link: https://e2e.ti.com/support/interface-group/interface/f/interface-forum/658638/dp83867ir-eee-energy-efficient-ethernet Fixes: 2a10154abcb7 ("net: phy: dp83867: Add TI dp83867 phy") Cc: stable@vger.kernel.org Signed-off-by: Emanuele Ghidoli Reviewed-by: Andrew Lunn Link: https://patch.msgid.link/20251023144857.529566-1-ghidoliemanuele@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/phy/dp83867.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -792,6 +792,12 @@ static int dp83867_config_init(struct ph return ret; } + /* Although the DP83867 reports EEE capability through the + * MDIO_PCS_EEE_ABLE and MDIO_AN_EEE_ADV registers, the feature + * is not actually implemented in hardware. + */ + phy_disable_eee(phydev); + if (phy_interface_is_rgmii(phydev) || phydev->interface == PHY_INTERFACE_MODE_SGMII) { val = phy_read(phydev, MII_DP83867_PHYCTRL);