Skip to content
  • Joe Hershberger's avatar
    net: Improve the speed of netconsole · f8be7d65
    Joe Hershberger authored
    
    
    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: default avatarJoe Hershberger <joe.hershberger@ni.com>
    Cc: Stefano Babic <sbabic@denx.de>
    Acked-by: default avatarStefano Babic <sbabic@denx.de>
    f8be7d65