• Ariel Elior's avatar
    bnx2x: Recovery flow bug fixes · 95c6c616
    Ariel Elior authored
    1. Sample mcp pulse and mcp sequence in nic load instead of in init_one
    as they may change by the time we want to use them.
    
    2. Allow cnic to access device during nic load (by adding a new "LOADING" state
    to recovery flow). This prevents the unnecessary cnic timeout which resulted
    by cnic attempting to access because nic is loading, but being blocked because
    of the Recovery state.
    
    3. Issue 'fake' driver load command to mcp when last driver unloads to prevent
    mcp from taking ownership. When recovery is complete unload fake driver to
    allow mcp to initialize the hardware before first driver loads.
    Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
    Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    95c6c616
bnx2x_main.c 319 KB