Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3759981pxt; Tue, 10 Aug 2021 10:40:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOMeDSWLP9N1na1gkbs/49BA08yZ1x1PCI9zUqKfhX4rHIb7d8ajq/5xIqCDjWzNwHc6Ff X-Received: by 2002:a17:906:b351:: with SMTP id cd17mr29593096ejb.36.1628617223122; Tue, 10 Aug 2021 10:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617223; cv=none; d=google.com; s=arc-20160816; b=pC0vfBh0K5ViJmEWFsHlCEhulkEHL5iez8jmz0ZJXyq3M1oWxoHs/MSGu9cID5ah3v /6zA8KlRaxabCIqh+TFDRFuXzOSaR65TOdm7ou5PaS8r1Nj13EAQqEX00jZY1rW1SEJ6 nd0e6flcWkBloHcUUQQrUC7ks4LrCHUgwSZv1qeIbNSu/X1rexOgrPU54HyVcQ5YQNZr xqwGoYwXNvLmFrymFHPdCQHlL81kdBrK5LHUcRBPvC8uNQ4LNltICWLqn98p25V/8sLr CHrDdWLG/+AKwTebb7ClxNbNrM63aTR0ZTNIQXXmrzafJS4mgsY8XMsMtVswTEinl1UD Fm9w== 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=Mjhwx49f4AnE4EgxEBHeVuINcNutZCB5Gb/fnN+FdjM=; b=CcWLW9PALfI0o4Q0IsTppRKO/xtSA7CZSqb9m8U3h64aY+8qeihyo5L95kX9Vt3yY+ FgWd6r05z6oiu9Z1v9hmjhmsP5iS2rORbdgyv5ClmNhaxcdw8azvtOZJloG+IUC8H+gz 2JCAGs+cl8ovpu+Izas5bEoBdJ5Hdg4eJYgE89etbaq8+fHvC8xrdQ6ymTmX8qtEE/vt ubUTN/kuwx9CzLFS/fEVJSGaSK8LEYIC4NnPrsH9OCqyEbrFJWq3kgerwuY614R6Z+xu utVvFeRgRI9InFLJppti/CK8sqlTBC6qWUvRmHe/2GwNrW42XlOr5eLWExmCZQFEPZrk QSCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ctYzIa4F; 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 y21si21002871eje.91.2021.08.10.10.39.56; Tue, 10 Aug 2021 10:40:23 -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=ctYzIa4F; 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 S233446AbhHJRfX (ORCPT + 99 others); Tue, 10 Aug 2021 13:35:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:40914 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232772AbhHJRe0 (ORCPT ); Tue, 10 Aug 2021 13:34:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 45D1061076; Tue, 10 Aug 2021 17:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628616843; bh=19XAj8CpkGRIQOjZXdON8Swuu6WXy9RgZW6TRI9rJrA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ctYzIa4Fm32B91XNZ8bJWu0RP+eilDmdP/hkYXZvGj+FF2iOZVDFauaRCrfcKgWTk kHHJ4RvC2xydeyuVUi9uZ3Lk3h+fI4XPkVKDD7nPB4voKfIPrwlJt2WDqfn5LZ84mm VmeqPoO7pJTQkoBcnzOlIpQ0Q8e2EjMHC2TDPluw= 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.4 06/85] ARM: dts: imx6qdl-sr-som: Increase the PHY reset duration to 10ms Date: Tue, 10 Aug 2021 19:29:39 +0200 Message-Id: <20210810172948.420988038@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172948.192298392@linuxfoundation.org> References: <20210810172948.192298392@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 6d7f6b9035bc..f2649241167e 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