• Yuval Mintz's avatar
    bnx2x: Free NVRAM lock at end of each page · 0ea853df
    Yuval Mintz authored
    Writing each 4Kb page into flash might take up-to ~100 miliseconds,
    during which time management firmware cannot acces the nvram for its
    own uses.
    
    Firmware upgrade utility use the ethtool API to burn new flash images
    for the device via the ethtool API, doing so by writing several page-worth
    of data on each command. Such action might create problems for the
    management firmware, as the nvram might not be accessible for a long time.
    
    This patch changes the write implementation, releasing the nvram lock on
    the completion of each page, allowing the management firmware time to
    claim it and perform its own required actions.
    Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@qlogic.com>
    Signed-off-by: default avatarAriel Elior <Ariel.Elior@qlogic.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0ea853df
bnx2x_ethtool.c 99.2 KB