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 F379EC433EF for ; Thu, 4 Nov 2021 13:41:04 +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 4515C61108 for ; Thu, 4 Nov 2021 13:41:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4515C61108 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com 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 6D17C836BC; Thu, 4 Nov 2021 14:41:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id AFDBB836B6; Thu, 4 Nov 2021 14:41:00 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 00B45836B2 for ; Thu, 4 Nov 2021 14:40:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andre.przywara@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 51FF51063; Thu, 4 Nov 2021 06:40:55 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A3DDB3F7D7; Thu, 4 Nov 2021 06:40:53 -0700 (PDT) Date: Thu, 4 Nov 2021 13:40:42 +0000 From: Andre Przywara To: Tom Rini Cc: Samuel Holland , u-boot@lists.denx.de, Joe Hershberger , Jagan Teki , Abbie Chang , Bin Meng , Kuldeep Singh , Meenakshi Aggarwal , Michal Simek , Priyanka Jain , "Radu Pirea (NXP OSS)" , Ramon Fried Subject: Re: [PATCH] net: phy: realtek: Add tx/rx delay config for 8211e Message-ID: <20211104134042.74ab5dc9@donnerap.cambridge.arm.com> In-Reply-To: <20211104131349.GK24579@bill-the-cat> References: <20211013020733.52574-1-samuel@sholland.org> <20211104131349.GK24579@bill-the-cat> Organization: ARM X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Thu, 4 Nov 2021 09:13:49 -0400 Tom Rini wrote: Hi Tom, > On Tue, Oct 12, 2021 at 09:07:32PM -0500, Samuel Holland wrote: > > > Some boards need to change the tx/rx delay config in order for > > gigabit Ethernet to work. > > > > In Linux commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx > > delay config"), Realtek documented the bits for overriding the delays > > from the hardware straps. > > > > Copy the logic from linux, so the delay config is set from the PHY's > > interface type (the phy-mode property in the device tree). > > > > This removes the need for a one-off workaround for the Pine A64+ board. > > > > Signed-off-by: Samuel Holland > > --- > > This change is needed for the Allwinner D1 Nezha board, which has > > incorrect hardware straps. > > OK, so this breaks my pine64+. It's the 1GB memory model from the > original Kickstarter with an 8211e on it. My dhcp just times out now, > with this applied. Let me know if there's some specifics you want me to > try for debug or talk to me off-list and I can try and setup access to > the board for you. Many thanks for testing and the report. I will have a closer look tonight, I should have quite some boards to be able to reproduce it. Thanks, Andre