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 7E9AA8487; Mon, 29 Apr 2024 12:36:58 +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=1714394220; cv=none; b=kdUYQHRKYSdy/k4Iu0pVQV3d1LukxCHVlmUCPD+zl2x2iEUOkrUEmIFsh6NcjEKiPgP/Fc1K335gaFCht1v9VHoiav7csP++hkGx8G/fwEOuf9p82/11yHyNpU/CkUxhCXmrudOA/tFksaoD+0SOVTWgdL+qx1s51w8tgsC1sEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714394220; c=relaxed/simple; bh=/ZVMW7S4ba1fzlJuh0IoZdyiFmNQgBjBERO39t+nbC0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NiPb/va/wfYtz69yEwwf1IMrxYaLjCnFF+iC8ymoEN57Hb/B7AjFHQRE2v23w1grDhwya/9P4S04Nb8sxuByVVUjzjKxGyuA3jsY+49NB1tiNaNdQo+nH7Rr8xR++PRZz0ra6kdJACWH5zNEsNl1NPQSDlZGoFTzjnKAGyTuzAo= 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=pUdKOUAy; 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="pUdKOUAy" 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=4rm+iSVUoeBsbsT8u7w4kcYSi0ko1/DqWhg4yghsUEk=; b=pUdKOUAygViyCfTwhA5WC5gnqS 2OwojHiZnRmBzi4PKEJFfc+QZjzChqXM1k7aDHaKDMNEoz6DUjgzK305jZAdJe8x0+QNHfwEZfX6O poowUIuKnIbOXTmJfp2kv0rI4IwXlABp62jTDmwcbr20pTNovwyZgfjcFRtiUYqG6dwk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s1QFZ-00EFXi-LR; Mon, 29 Apr 2024 14:36:53 +0200 Date: Mon, 29 Apr 2024 14:36:53 +0200 From: Andrew Lunn To: Colin Foster Cc: Andrew Halaney , netdev@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: Beaglebone Ethernet Probe Failure In 6.8+ Message-ID: <44eaf045-3766-410f-bb2e-fb008b1513bf@lunn.ch> References: <53a70554-61e5-414a-96a0-e6edd3b6c077@lunn.ch> <3kpvqcg3twpifzkxkrvhqew3cjuq2imgo4d4b775oypguik55g@npe75wf7rpdr> Precedence: bulk X-Mailing-List: linux-omap@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: > I went all in and did a 100ms delay before returning from the resets of > 3 and 4 you mention. Sure enough, everything worked! It certainly should > be understood and optimized. I added the linux-omap list to this thread > (please let me know if there were others I should've CC'd on any of > these emails). It probably has little to do with the OMAP, it is the Microchip PHY you need more information about. 100ms is a very long time. The data sheet says: Note: For the first 16us after coming out of reset, the RMII interface will run at 2.5 MHz. After this time, it will switch to 25 MHz if auto-negotiation is enabled. I did not find anything else. I would try a deassert time the same as the asset time as a starting point. It could also be that you ask Linux for 100us sleep, and Linux actually gives your 1ms because of the resolution of the timers. But i doubt many application will care about a 1ms delay. Andrew