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 D2FE81FDA92; Tue, 11 Nov 2025 00:48:17 +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=1762822097; cv=none; b=Ycc/WsDuqTR6CgRD1FO7USS0oI2kST9QQvsV6+3OQlHn9oK4DXwspNTRZcayfABvUTisIpM+5otd0dKnwBrveDNkVX6ffeKqa+DohMFn554nUG7mmXBRU8Qz9pKXqP3/sAOZtYN2DDxDMcCsXRANCP1WF21T9Mt1Uyn+zjsiSzw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762822097; c=relaxed/simple; bh=C3/+Pwjwyxp7Q2o8zXWiRFLQSbl4pkxbMRkt3O8O5lI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kjmJ//Wg4R7d7GYjFMNMCGdUD31ONjmwxO9WH+WmyUN07A2QzSIBHh6869o0zgdx4tVE++yPkImXCvMyOxRL6lJG9ET0veCt1Gu2VUv8hFLh4uP6PXkOkpts77YqWl3VfmfjiidhU981xA3o2mBqgblMC5HFTLmscP09rMbG/q4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1CLPqIPs; 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="1CLPqIPs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47543C16AAE; Tue, 11 Nov 2025 00:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762822097; bh=C3/+Pwjwyxp7Q2o8zXWiRFLQSbl4pkxbMRkt3O8O5lI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1CLPqIPsf5xJWpLd1NZ31a/ej5FtFj8h8cdp0SvR1unXp8jl0nN+RPGKbe1vfFc5V sGSL1gnHWm3KHylxefOSP87jvQx3YcUZoPAY65GPfVqMMrfhpdL5LoCTfBX9ElMBKc TxalzdARghXSLZTs6epZbfrUpPrDR0C6e7zr17Gc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Emanuele Ghidoli , Andrew Lunn , Jakub Kicinski Subject: [PATCH 6.17 016/849] net: phy: dp83867: Disable EEE support as not implemented Date: Tue, 11 Nov 2025 09:33:06 +0900 Message-ID: <20251111004536.852862484@linuxfoundation.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251111004536.460310036@linuxfoundation.org> References: <20251111004536.460310036@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.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Emanuele Ghidoli commit 84a905290cb4c3d9a71a9e3b2f2e02e031e7512f upstream. 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: 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 @@ -738,6 +738,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);