• J
    net: Improve the speed of netconsole · f8be7d65
    Joe Hershberger 提交于
    Previously u-boot would initialize the network interface for every
    network operation and then shut it down again.  This makes sense for
    most operations where the network in not known to be needed soon after
    the operation is complete.  In the case of netconsole, it will use the
    network for every interaction with the shell or every printf.  This
    means that the network is being reinitialized very often.  On many
    devices, this intialization is very slow.
    
    This patch checks for consecutive netconsole actions and leaves the
    ethernet hardware initialized between them.  It will still behave the
    same old way for all other network operations and any time another
    network operation happens between netconsole operations.
    Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
    Cc: Stefano Babic <sbabic@denx.de>
    Acked-by: NStefano Babic <sbabic@denx.de>
    f8be7d65
eth.c 11.7 KB