From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5485C433EF for ; Mon, 21 Feb 2022 13:28:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359090AbiBUN3P (ORCPT ); Mon, 21 Feb 2022 08:29:15 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359113AbiBUN3D (ORCPT ); Mon, 21 Feb 2022 08:29:03 -0500 X-Greylist: delayed 2117 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 21 Feb 2022 05:28:23 PST Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B37FD2251C for ; Mon, 21 Feb 2022 05:28:23 -0800 (PST) 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=sayEeBgKtLESYWQZcr3jv6aw2n8vp/mjZE5bR+bQG0o=; b=F4KW8aYyOQXpZk9O1Pf8A9pSHL gDXCtdOuegtxbxAV+dN9H88C3Ds47qdwAfr2Jl0b1HesdAeFUfJI7tozz4cgDhsyHh9mIvGZiBBh1 2Xouei1ZdHBNCDbcdNURryyymI9klN81gEJGzro7uMhZKrAbpKsWx7GVj5ab6AYA+of8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nM8BT-007K51-S4; Mon, 21 Feb 2022 13:52:55 +0100 Date: Mon, 21 Feb 2022 13:52:55 +0100 From: Andrew Lunn To: Baruch Siach Cc: Heiner Kallweit , Russell King , Baruch Siach , Robert Marko , Luo Jie , Bryan O'Donoghue , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] net: mdio-ipq4019: add delay after clock enable Message-ID: References: <01c6b6afb00c02a48fa99542c5b4c6a2c69092b0.1645443957.git.baruch@tkos.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01c6b6afb00c02a48fa99542c5b4c6a2c69092b0.1645443957.git.baruch@tkos.co.il> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Mon, Feb 21, 2022 at 01:45:57PM +0200, Baruch Siach wrote: > From: Baruch Siach > > Experimentation shows that PHY detect might fail when the code attempts > MDIO bus read immediately after clock enable. Add delay to stabilize the > clock before bus access. > > PHY detect failure started to show after commit 7590fc6f80ac ("net: > mdio: Demote probed message to debug print") that removed coincidental > delay between clock enable and bus access. > > 10ms is meant to match the time it take to send the probed message over > UART at 115200 bps. This might be a far overshoot. > > Fixes: 23a890d493e3 ("net: mdio: Add the reset function for IPQ MDIO driver") > Signed-off-by: Baruch Siach Reviewed-by: Andrew Lunn Andrew