Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22C29C433F5 for ; Fri, 5 Nov 2021 00:36:16 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CA04D610D0 for ; Fri, 5 Nov 2021 00:36:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CA04D610D0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DE50F83686; Fri, 5 Nov 2021 01:36:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="bKJZBRVm"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="Z3U4kyKc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1DD87836D0; Fri, 5 Nov 2021 01:36:10 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F0E4183305 for ; Fri, 5 Nov 2021 01:36:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 777C65C00D8; Thu, 4 Nov 2021 20:36:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 04 Nov 2021 20:36:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=HoFKfqIe8gtSFm59R7r2uIEtDW AJ3w/CBREDRszSMgQ=; b=bKJZBRVm40ZG8A+vKNJ3vaeG81Z/xumjJWgPFFOrdF xTZVmJzq3LQvnPls1ooZYHHEpib00sq935aL5WuuAoi51C6LTJIir6XqC/fpZkqK 1e/8ejDzXE4ZNC1pkXwLhS0BdGEObtQVeA4ptqx0D9rYRQfasohpRAAY8GpjJShR 73c/8evr+qeYyRkGYrMpJpulPrylzqDwgqUR855b5VzViWgf1v78B1R9XfzfX1Mj egk60Vi+zJsSsQWJ6WbOaJD8RMqW36Y0SDQ57/FQB24EA7rKgQx3g41QBktbtsWt z9Wmg/cAP3THIfsPpiv3ie2LV5OhS9N+ZAh7c5DsRf9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=HoFKfqIe8gtSFm59R 7r2uIEtDWAJ3w/CBREDRszSMgQ=; b=Z3U4kyKclx77CZCns8/zYlXZpnMvNGOeb WAc2QPckKlCSWefYZRI7IT4cV9q5D088xqbo726OwcvC07ZJms9Ksnp48coWNLrv yc2B8oiCjq0qaW9tU6QFmnytRYc61wLzY6m22uLzXpo5Z+4mmvnJRMi7OaQqrvC6 2PKtEgMdZymhlNcpAEH33eM1a4HOk4i4JklDp7xkCboMq2v8YFE01R/LIQojaafs jvtbNmMDwMqytpqTmKO0kHtKBp0fCc4G2ZAC05V4EI88iom3/D6WiduoQBzq/jc4 YjLUzam1rf1tcCvOWxkP3CEQFzu6Rp0Dpuf4j5fJUXMOWsKGesKkw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtdehgddvudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghlucfj ohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrfgrth htvghrnhepieetkefhheduudfgledtudefjeejfeegveehkeeufffhhfejkeehiefftdev tdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsh grmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Nov 2021 20:36:03 -0400 (EDT) From: Samuel Holland To: u-boot@lists.denx.de, Joe Hershberger Cc: Jagan Teki , Andre Przywara , Tom Rini , Samuel Holland , Ramon Fried Subject: [PATCH] net: phy: realtek: Set correct bit for 8211e delays Date: Thu, 4 Nov 2021 19:36:01 -0500 Message-Id: <20211105003602.3580-1-samuel@sholland.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean commit cb1d40151489 ("net: phy: realtek: Add tx/rx delay config for 8211e") added support for all four possible delay combinations, but set the wrong bit in the RXID and TXID cases. This broke Ethernet on boards using one of those settings. Fix that by fixing the bit selection. Fixes: cb1d40151489 ("net: phy: realtek: Add tx/rx delay config for 8211e") Reported-by: Tom Rini Signed-off-by: Samuel Holland --- drivers/net/phy/realtek.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 84c755525f..24c3ea59bb 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -194,10 +194,10 @@ static int rtl8211e_config(struct phy_device *phydev) MIIM_RTL8211E_RX_DELAY; break; case PHY_INTERFACE_MODE_RGMII_RXID: - val = MIIM_RTL8211E_CTRL_DELAY | MIIM_RTL8211E_TX_DELAY; + val = MIIM_RTL8211E_CTRL_DELAY | MIIM_RTL8211E_RX_DELAY; break; case PHY_INTERFACE_MODE_RGMII_TXID: - val = MIIM_RTL8211E_CTRL_DELAY | MIIM_RTL8211E_RX_DELAY; + val = MIIM_RTL8211E_CTRL_DELAY | MIIM_RTL8211E_TX_DELAY; break; default: /* the rest of the modes imply leaving delays as is. */ goto default_delay; -- 2.32.0