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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2922DC433F5 for ; Mon, 15 Nov 2021 11:21:42 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 43D1861C15 for ; Mon, 15 Nov 2021 11:21:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 43D1861C15 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 252C1836BE; Mon, 15 Nov 2021 12:21:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="lBt/b8u0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 73FEB83651; Mon, 15 Nov 2021 12:21:37 +0100 (CET) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 32086836BE for ; Mon, 15 Nov 2021 12:21:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=595306832a=patrick.delaunay@foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1AFA7Z0b030744; Mon, 15 Nov 2021 12:21:30 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=WU+abUPLtQcMxnZ7Z7dwNWM6iiTJiD59QmJ+KARs2Po=; b=lBt/b8u0f1Zd/7x+lJ+Xga1IXy/rhfHaHgJXVWrvIPz0g3SHLvnTYWawS9LhKDxlMeVD FQ1xQAp2x1Zj8hC3scDMeQMJerJ1i/3q6wUCEDDqAFTt0/oHNUbwoj/VLIB3zmDUtJzw dtnxnwagZAYv7CQ7hoXz8e2tn4mTf10VS1/xbSVugaMMqVhdUHIUjCNp1V8kQwce/GWY hj51mpTipeJO2W0YJuHaElnh8aey/W2HcdPvk5UTZx/s5t2gFQ/Om+F2oD+Q2meISr4r fJUgJ7Z+HBdtqn/QpH7uQ5MtXaM977FiuuqF4xSvyK0aDzQH+OxFb2pWftsjRKxkTSa/ 6A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3cben9ubsd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Nov 2021 12:21:30 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8FCA710002A; Mon, 15 Nov 2021 12:21:29 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8803922D188; Mon, 15 Nov 2021 12:21:29 +0100 (CET) Received: from lmecxl0994.lme.st.com (10.75.127.51) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 15 Nov 2021 12:21:29 +0100 Subject: Re: [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM To: Marek Vasut , CC: Patrice Chotard References: <20211113022605.231861-1-marex@denx.de> From: Patrick DELAUNAY Message-ID: <0aec4159-641f-6209-63e6-477a29db4635@foss.st.com> Date: Mon, 15 Nov 2021 12:21:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211113022605.231861-1-marex@denx.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-15_10,2021-11-15_01,2020-04-07_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi, On 11/13/21 3:26 AM, Marek Vasut wrote: > The Micrel PHYs on known DHSOM based boards take a while to come out > of reset, increase the auto-negotiation timeout to prevent it from > timing out in case the ethernet is used right after the board was > reset. > > Signed-off-by: Marek Vasut > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- > include/configs/stm32mp15_dh_dhsom.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/configs/stm32mp15_dh_dhsom.h b/include/configs/stm32mp15_dh_dhsom.h > index b68e153f10b..d2fe923a33b 100644 > --- a/include/configs/stm32mp15_dh_dhsom.h > +++ b/include/configs/stm32mp15_dh_dhsom.h > @@ -21,6 +21,9 @@ > "sf update ${loadaddr} 0x80000 ${filesize} && " \ > "env set filesize1 && env set loadaddr1\0" > > +/* PHY needs a longer autoneg timeout */ > +#define PHY_ANEG_TIMEOUT 20000 > + > #include > > #define CONFIG_SPL_TARGET "u-boot.itb" Reviewed-by: Patrick Delaunay Thanks Patrick