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

2018-05-08 Thread Leonid Iziumtsev
nsole 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 --- net/net.c | 3 +++ 1 file changed, 3 insertion

[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 --- net/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

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

2016-03-20 Thread Leonid Iziumtsev
From: Leonid Iziumtsev Make the watchdog registers 16-bit wide, as they are according to TRM. Signed-off-by: Leonid Iziumtsev --- arch/arm/cpu/arm926ejs/mx27/reset.c | 8 arch/arm/include/asm/arch-mx27/imx-regs.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions