Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3765605pxt; Tue, 10 Aug 2021 10:48:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7/3PbVcyEooufHCq5G5GvGE+ZHGkr8YAQsTMLx3bkN1qjPgObBlwCT0UsuwOdLvLBDieq X-Received: by 2002:a17:906:4943:: with SMTP id f3mr28668901ejt.102.1628617704709; Tue, 10 Aug 2021 10:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617704; cv=none; d=google.com; s=arc-20160816; b=zphP9QvAOA2ippjVe0TQ+HtvAsptfKXjxkyFBwrF/JCDhWAk0UDOWvoBVz/L5l6J8W wYu3j43Q/Zv6JZURSCZeOowNoaVQtzQg5nNXHRivnycIcNVJRBjl+WFpm+VaZw5hOPfs Vx5t3RLKKA+GDAQYew17FB19gn5G4hPfHCE2g6VTIIk9u2HVY+c0n/urVOJV7cdJQRur cCogCBk9gMMzfdNtFJ2kEdnKk5fothfgD4Eo9U9I+kricRFuRJKKVtFXOJEecR86qRLQ 97AgcCWZLv1dD6idynmXBN9HG8XIRW2OIbAG5gapJUBpkwrSHlctS26HeSzYiGqOgKnu ElBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nK1tAMNrZ+xt5BSxb3+CuIwvKrSmaeIlTCbuahaJ5io=; b=h53fzMsb8MiGal9msvCU3p+e7mJmiUiP4faKGb1qpReQy/rFBIWDpkiQq+MdhMHurQ RtMtuIi36+12EOI2obeKDihKB6eV5d+kiniOhya/n+O20YUgw3F1uH/1iJD8wjBq0rzU VfnIBtikc0TpWjvpxNIuS1nokHD55CSFkEDZZ+VrNkLboXgGSxHmHHGjjc0e6t32B4HK ud0Py5iP495IuRLjMXv991yQFwpc26wu4nGppFY+n0wghlT2mwRz9/wp0or4yEfY8pne Hkt7GWkab0+OouncGEiVt9FxUGeNQCA/WpZGJuMVuTL/Pip6LUqqzbEjd8vOIIg+qKy4 pqzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="FZSv+/fl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr7si20564999ejc.114.2021.08.10.10.47.59; Tue, 10 Aug 2021 10:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="FZSv+/fl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235930AbhHJRoN (ORCPT + 99 others); Tue, 10 Aug 2021 13:44:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:36322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234075AbhHJRka (ORCPT ); Tue, 10 Aug 2021 13:40:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 49B1E61208; Tue, 10 Aug 2021 17:38:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617085; bh=k1UfleYK6ZyH70sxwYQ1fNFWMPFNki4NENz3b3VVt6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FZSv+/flQfYjaRjyosLLZHNsMakYbya5v2UuGyyfs04OLJJQxMrCx0QmdGfr8V4/V 5gcmqY4m3CMqCEKc+fDoo0NM4hajzW6JIIlYKcfWo1rfkU7m85l5KKTNwNNOxWjMZL zkNmNkR3kOvALeB4McF1ZckJ0TIPCNrngWYgo4rA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Chevallier , =?UTF-8?q?Herv=C3=A9=20Codina?= , "Russell King (Oracle)" , Shawn Guo , Sasha Levin Subject: [PATCH 5.10 008/135] ARM: dts: imx6qdl-sr-som: Increase the PHY reset duration to 10ms Date: Tue, 10 Aug 2021 19:29:02 +0200 Message-Id: <20210810172955.954869486@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Chevallier [ Upstream commit fd8e83884fdd7b5fc411f201a58d8d01890198a2 ] The AR803x PHY used on this modules seems to require the reset line to be asserted for around 10ms in order to avoid rare cases where the PHY gets stuck in an incoherent state that prevents it to function correctly. The previous value of 2ms was found to be problematic on some setups, causing intermittent issues where the PHY would be unresponsive every once in a while on some sytems, with a low occurrence (it typically took around 30 consecutive reboots to encounter the issue). Bumping the delay to the 10ms makes the issue dissapear, with more than 2500 consecutive reboots performed without the issue showing-up. Fixes: 208d7baf8085 ("ARM: imx: initial SolidRun HummingBoard support") Signed-off-by: Maxime Chevallier Tested-by: Hervé Codina Reviewed-by: Russell King (Oracle) Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm/boot/dts/imx6qdl-sr-som.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-sr-som.dtsi b/arch/arm/boot/dts/imx6qdl-sr-som.dtsi index 7e4e5fd0143a..c56337b63c3b 100644 --- a/arch/arm/boot/dts/imx6qdl-sr-som.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sr-som.dtsi @@ -54,7 +54,13 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_microsom_enet_ar8035>; phy-mode = "rgmii-id"; - phy-reset-duration = <2>; + + /* + * The PHY seems to require a long-enough reset duration to avoid + * some rare issues where the PHY gets stuck in an inconsistent and + * non-functional state at boot-up. 10ms proved to be fine . + */ + phy-reset-duration = <10>; phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; status = "okay"; -- 2.30.2