1. 25 2月, 2012 17 次提交
  2. 24 2月, 2012 21 次提交
  3. 23 2月, 2012 2 次提交
    • M
      tg3: Create timer helper functions · 21f7638e
      Matt Carlson 提交于
      This patch seeks to clean up the timer related code.  It begins by
      moving one-time timer setup code from tg3_open() to tg3_init_one().
      It then creates a function that encapsulates the code needed to start
      the timer.  A tg3_timer_stop() function was added for parity.  Finally,
      this patch moves all the timer functions to a more suitable location.
      Signed-off-by: NMatt Carlson <mcarlson@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      21f7638e
    • M
      tg3: Clear RECOVERY_PENDING with reset_task_cancel · c7101359
      Matt Carlson 提交于
      If an error happens in the tx completion thread, tg3_reset_task will be
      scheduled and TX_RECOVERY_PENDING will be set.  The TX_RECOVERY_PENDING
      flag causes tg3_poll[_msix] to return early before doing much of its
      work.  Tg3_reset_task() gets canceled when the configuration of the
      device is changing, which always results in a chip reset.  When this
      happens, the TX_RECOVERY_PENDING flag may be left set, which would
      unnecessarily hinder tg3_poll from doing work.  This patch fixes the
      problem.
      Signed-off-by: NMatt Carlson <mcarlson@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c7101359