• Matt Carlson's avatar
    tg3: Reduce UMP event collision window · b28f389d
    Matt Carlson authored
    The tg3 driver needs to submit a few phy register values to the UMP
    firmware each time the link state changes.  Up until now, the driver
    would wait for the previous event to complete, then proceed to gather
    data through a series of phy accesses.  Since phy accesses are
    relatively slow, it is possible for another thread to attempt to submit
    its own event while the UMP code is still construction its message.
    
    This patch seeks to minimize the collision window as much as possible by
    preloading the phy data.
    Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
    Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b28f389d
tg3.c 419 KB