[U-Boot] [PATCH] net: Protect net_state from reentrant net_loop()

2018-05-08 Thread Leonid Iziumtsev
Netconsole will overwrite the "net_state" and that will break the logic for earlier started protocol. To protect the state save and restore "net_state" variable each time when we enter and exit net_loop(). Signed-off-by: Leonid Iziumtsev <leonid.iziumt...@se.atlascopco.com> ---

[U-Boot] [PATCH] net: Fix netretry condition

2018-03-09 Thread Leonid Iziumtsev
quot; to "once" will make "retrycnt" equal "1", so no retries will be triggered at all. Fix the logic by changing the statement of "if" condition. Signed-off-by: Leonid Iziumtsev <leonid.iziumt...@se.atlascopco.com> --- net/net.c | 2 +- 1 file changed,

[U-Boot] [PATCH] mx27: 16-bit wide watchdog registers

2016-03-20 Thread Leonid Iziumtsev
From: Leonid Iziumtsev <leonid.iziumt...@se.atlascopco.com> Make the watchdog registers 16-bit wide, as they are according to TRM. Signed-off-by: Leonid Iziumtsev <leonid.iziumt...@se.atlascopco.com> --- arch/arm/cpu/arm926ejs/mx27/reset.c | 8 arch/arm/include/asm/a