Skip to content
  • Rasesh Mody's avatar
    bna: fix for clean fw re-initialization · 79ea6c89
    Rasesh Mody authored
    
    
    During a kernel crash, bna control path state machine and firmware do not
    get a notification and hence are not cleanly shutdown. The registers
    holding driver/IOC state information are not reset back to valid
    disabled/parking values. This causes subsequent driver initialization
    to hang during kdump kernel boot. This patch, during the initialization
    of first PCI function, resets corresponding register when unclean shutown
    is detect by reading chip registers. This will make sure that ioc/fw
    gets clean re-initialization.
    
    Signed-off-by: default avatarDebashis Dutt <ddutt@brocade.com>
    Signed-off-by: default avatarRasesh Mody <rmody@brocade.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    79ea6c89