On Tue, May 8, 2018 at 8:55 AM, Leonid Iziumtsev
<[email protected]> wrote:
> Global variable "net_state" is used in net_loop() state-machine.
> But it happens that some times the net_loop() can be called
> multiple times in the same call stack. For example when the
> netconsole is enabled and we print the message while some other
> net protocol is in action. 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 <[email protected]>

Acked-by: Joe Hershberger <[email protected]>
_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to