Fix loading freeze when netconsole is active
authorFrederic Leroy <fredo@starox.org>
Tue, 10 Sep 2013 10:02:31 +0000 (12:02 +0200)
committerTom Rini <trini@ti.com>
Fri, 20 Sep 2013 14:30:53 +0000 (10:30 -0400)
commit8094972d594d883e3e556751f67ff5cdd8a286c5
tree31128f482b75638029a8ddf6980621c4d4a9ff6b
parent1f8b546f9e782b7eb9815368efa906b5718c6e9b
Fix loading freeze when netconsole is active

Netconsole calls eth_halt() before giving control to another operating
system.
But the state machine of netconsole don't take it into account.
Thus, netconsole calls network functions of an halted network device,
making the whole system freeze.
Rather than modifying the state machine of netconsole, we just unregister
the current network device before booting. It does work because
nc_send_packet() verifies that the current network device is not null.

Signed-off-by: Frédéric Leroy <fredo@starox.org>
common/cmd_bootm.c