* [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM
@ 2021-11-13 2:26 Marek Vasut
2021-11-15 8:12 ` Patrice CHOTARD
2021-11-15 11:21 ` Patrick DELAUNAY
0 siblings, 2 replies; 4+ messages in thread
From: Marek Vasut @ 2021-11-13 2:26 UTC (permalink / raw)
To: u-boot; +Cc: Marek Vasut, Patrice Chotard, Patrick Delaunay
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 <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
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 <configs/stm32mp15_common.h>
#define CONFIG_SPL_TARGET "u-boot.itb"
--
2.33.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM
2021-11-13 2:26 [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM Marek Vasut
@ 2021-11-15 8:12 ` Patrice CHOTARD
2021-11-15 11:21 ` Patrick DELAUNAY
1 sibling, 0 replies; 4+ messages in thread
From: Patrice CHOTARD @ 2021-11-15 8:12 UTC (permalink / raw)
To: Marek Vasut, u-boot; +Cc: Patrick Delaunay
Hi Marek
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 <marex@denx.de>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
> 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 <configs/stm32mp15_common.h>
>
> #define CONFIG_SPL_TARGET "u-boot.itb"
>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM
2021-11-13 2:26 [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM Marek Vasut
2021-11-15 8:12 ` Patrice CHOTARD
@ 2021-11-15 11:21 ` Patrick DELAUNAY
2021-11-30 10:29 ` Patrice CHOTARD
1 sibling, 1 reply; 4+ messages in thread
From: Patrick DELAUNAY @ 2021-11-15 11:21 UTC (permalink / raw)
To: Marek Vasut, u-boot; +Cc: Patrice Chotard
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 <marex@denx.de>
> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
> 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 <configs/stm32mp15_common.h>
>
> #define CONFIG_SPL_TARGET "u-boot.itb"
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Thanks
Patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM
2021-11-15 11:21 ` Patrick DELAUNAY
@ 2021-11-30 10:29 ` Patrice CHOTARD
0 siblings, 0 replies; 4+ messages in thread
From: Patrice CHOTARD @ 2021-11-30 10:29 UTC (permalink / raw)
To: Patrick DELAUNAY, Marek Vasut, u-boot
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 <marex@denx.de>
>> Cc: Patrice Chotard <patrice.chotard@foss.st.com>
>> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> ---
>> 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 <configs/stm32mp15_common.h>
>> #define CONFIG_SPL_TARGET "u-boot.itb"
>
>
>
> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
>
> Thanks
> Patrick
>
>
Applied to u-boot-stm32/next
Thanks
Patrice
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-11-30 10:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-13 2:26 [PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM Marek Vasut
2021-11-15 8:12 ` Patrice CHOTARD
2021-11-15 11:21 ` Patrick DELAUNAY
2021-11-30 10:29 ` Patrice CHOTARD
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.