]> git.baikalelectronics.ru Git - uboot.git/commit
net: macb: Add small delay after link establishment
authorStefan Roese <sr@denx.de>
Wed, 27 Mar 2019 10:20:19 +0000 (11:20 +0100)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 9 Apr 2019 06:28:50 +0000 (09:28 +0300)
commitd01a389d6225a85988588be7fc2d7e8bc116a6c1
tree05166c35138bf40a5d987ec86c2b75344977bfa1
parent4f035aff4982e88197fe49c809090b2341d9dbaf
net: macb: Add small delay after link establishment

I've noticed that the first ethernet packet after PHY link establishment
is not tranferred correctly most of the time on my AT91SAM9G25 board.
Here I usually see a timeout of a few seconds, which is quite
annoying.

Adding a small delay (10ms in this case) after the link establishment
helps to solve this problem. With this patch applied, this timeout
on the first packet is not seen any more.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Wenyou Yang <wenyou.yang@atmel.com>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/macb.c