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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D6989C433F5 for ; Tue, 30 Nov 2021 10:29:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA2F183077; Tue, 30 Nov 2021 11:29: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="E1n6TpcX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 794638306A; Tue, 30 Nov 2021 11:29:38 +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 88B6883080 for ; Tue, 30 Nov 2021 11:29:34 +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=6968f9ae4c=patrice.chotard@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 1AU8e3ta001541; Tue, 30 Nov 2021 11:29:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=be1k56f3K0W+/8FFvMibo2hEecrWRkThsHkDGI6FfPk=; b=E1n6TpcXMKPMOoQMcsHXlZ2HtaKFTEZi55tU4ctkMeC7G2n2pq0aF589jBVSz+xGPgCW BxBut53GCgieo4d4CXp8mFGJT+4nM0iVXtWEY31o2rm4LgBj3tx87uLZtlmqJ5YFR01Q y7lDlNyozDyQYd+V/4+rF8bH8BEB+XXOd/6SAOBc6pLRufx90c+bB9gDD5XughxLr1jC WYK51ylQe/+W7urcjppp7Z1KVkN1rFZ6kgu0wAq06lxcyYcYVXvdiox3zj5qgDoWwQvk nVli431dOiDfz80OKkM0/TeB+d0xCMgbdXpqh+JiEzFyxFz+W4JWeEm1uuDzV7sMRdFq cA== 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 3cn98hjmtu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Nov 2021 11:29:33 +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 64FD5100034; Tue, 30 Nov 2021 11:29:33 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5E4DE2291A2; Tue, 30 Nov 2021 11:29:33 +0100 (CET) Received: from lmecxl0573.lme.st.com (10.75.127.47) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 30 Nov 2021 11:29:33 +0100 Subject: Re: [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM To: Patrick DELAUNAY , Marek Vasut , References: <20211113022605.231861-1-marex@denx.de> <0aec4159-641f-6209-63e6-477a29db4635@foss.st.com> From: Patrice CHOTARD Message-ID: Date: Tue, 30 Nov 2021 11:29:27 +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: <0aec4159-641f-6209-63e6-477a29db4635@foss.st.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) 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-30_06,2021-11-28_01,2020-04-07_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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 Marek On 11/15/21 12:21 PM, Patrick DELAUNAY wrote: > 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 > > Applied to u-boot-stm32/next Thanks Patrice