Re: [U-Boot] [PATCH 1/3] net/eth: set status to active before calling init

2012-04-03 Thread Sebastian Andrzej Siewior
On 04/03/2012 10:41 PM, Mike Frysinger wrote: On Friday 23 March 2012 16:11:17 Sebastian Andrzej Siewior wrote: If we set the status after successful init call then we get in trouble if stdout (or setderr) is set to netconsole. If we are going to use one of those (lets say printf) during ->init(

Re: [U-Boot] [PATCH 1/3] net/eth: set status to active before calling init

2012-04-03 Thread Mike Frysinger
On Friday 23 March 2012 16:11:17 Sebastian Andrzej Siewior wrote: > If we set the status after successful init call then we get in trouble > if stdout (or setderr) is set to netconsole. If we are going to use one > of those (lets say printf) during ->init() the following happens: > - network is of

[U-Boot] [PATCH 1/3] net/eth: set status to active before calling init

2012-03-23 Thread Sebastian Andrzej Siewior
If we set the status after successful init call then we get in trouble if stdout (or setderr) is set to netconsole. If we are going to use one of those (lets say printf) during ->init() the following happens: - network is of (state passive) - we switch on netconsole - nc_getc() gets called - in Net