From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 BD8C91EE033; Thu, 12 Jun 2025 15:33:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749742435; cv=none; b=Dgoz3WcFQiAWoNX3qv2cp0qFTiEDsFSHzBJxkPpKdwEy0vWoEf9njWHA9oyAA+LQbXXYkLHRMsDDE5YgzGsVOnosYv1qqwFQrsD/soeJXTe8+drAeeA9htLe/pbZFYM86lFvZhZiyjy/pZq2khPYOfr9WHikEWop7IqX3bTfZw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749742435; c=relaxed/simple; bh=+DNCBvsfLjxRPcow0XfuYtQhzO3eWDE97Zuk75d8x6Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jnjg4LNdrRfSdQJGqIlgQyFtVa5zT2SuzIwS4GK3QWOiMg0SwsvSHMVsuy8Swk/lVcdP05P3kA59JVstC1CRLXAWRQkdjG3+pzHss/ruids2tV0+LfUCHGX4/6Z/Um2Cf32LhxVqn/prq/uyM338Y+Evc2qyKuPZGyAW48kAPoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=Yjg2uiYF; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="Yjg2uiYF" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=2PkK9SwGCsq/VV6HXTKETbkasnoCs7bg2c1XGqVetyE=; b=Yjg2uiYFPI4G4aNQhtnPjs3hv7 Qt4m3D8vw6uOtFoTfAZGbZhDcI2vPaikPoiNCRY6D/JOvC84RjsldtJe+f+6FbdDPyjeJGUhUTi91 2G2ARm2bWtdWuftfNPgVcrnTV+/l/yujW7nMoSDJkFnUM2WhkcB6+5ruP6bxfQiaAMHM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1uPjw0-00FYnj-Bv; Thu, 12 Jun 2025 17:33:44 +0200 Date: Thu, 12 Jun 2025 17:33:44 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Jander , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v2 1/3] net: phy: dp83tg720: implement soft reset with asymmetric delay Message-ID: <5a74859d-5364-475b-992d-62c074f7dcef@lunn.ch> References: <20250612104157.2262058-1-o.rempel@pengutronix.de> <20250612104157.2262058-2-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250612104157.2262058-2-o.rempel@pengutronix.de> On Thu, Jun 12, 2025 at 12:41:55PM +0200, Oleksij Rempel wrote: > From: David Jander > > Add a .soft_reset callback for the DP83TG720 PHY that issues a hardware > reset followed by an asymmetric post-reset delay. The delay differs > based on the PHY's master/slave role to avoid synchronized reset > deadlocks, which are known to occur when both link partners use > identical reset intervals. > > The delay includes: > - a fixed 1ms wait to satisfy MDC access timing per datasheet, and > - an empirically chosen extra delay (97ms for master, 149ms for slave). > > Co-developed-by: Oleksij Rempel > Signed-off-by: David Jander > Signed-off-by: Oleksij Rempel Reviewed-by: Andrew Lunn Andrew