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)
commit7bf9bca7c0a9fe5c63e8fd5c2aa63884d76dace0
tree05166c35138bf40a5d987ec86c2b75344977bfa1
parent068d4c0a11e43cce6e819e19884b49a8bc4e1722
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