1. 09 3月, 2013 1 次提交
    • N
      tg3: Update link_up flag for phylib devices · 84421b99
      Nithin Sujir 提交于
      Commit f4a46d1f introduced a bug where
      the ifconfig stats would remain 0 for phylib devices. This is due to
      tp->link_up flag never becoming true causing tg3_periodic_fetch_stats()
      to return.
      
      The link_up flag was being updated in tg3_test_and_report_link_chg()
      after setting up the phy. This function however, is not called for
      phylib devices since the driver does not do the phy setup.
      
      This patch moves the link_up flag update into the common
      tg3_link_report() function that gets called for phylib devices as well
      for non phylib devices when the link state changes.
      
      To avoid updating link_up twice, we replace tg3_carrier_...() calls that
      are followed by tg3_link_report(), with netif_carrier_...(). We can then
      remove the unused tg3_carrier_on() function.
      
      CC: <stable@vger.kernel.org>
      Reported-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Signed-off-by: NNithin Nayak Sujir <nsujir@broadcom.com>
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      84421b99
  2. 19 2月, 2013 2 次提交
  3. 16 2月, 2013 5 次提交
  4. 08 2月, 2013 2 次提交
  5. 05 2月, 2013 1 次提交
  6. 15 1月, 2013 3 次提交
  7. 11 1月, 2013 1 次提交
  8. 09 1月, 2013 1 次提交
  9. 07 1月, 2013 4 次提交
  10. 08 12月, 2012 1 次提交
  11. 05 12月, 2012 5 次提交
  12. 04 12月, 2012 1 次提交
  13. 15 11月, 2012 4 次提交
  14. 07 11月, 2012 2 次提交
  15. 03 10月, 2012 1 次提交
    • M
      tg3: Fix sparse warnings. · 86449944
      Michael Chan 提交于
      drivers/net/ethernet/broadcom/tg3.c:8121:8: warning: symbol 'i' shadows an earlier one
      drivers/net/ethernet/broadcom/tg3.c:8003:6: originally declared here
      drivers/net/ethernet/broadcom/tg3.c:785:5: warning: symbol 'tg3_ape_scratchpad_read' was not declared. Should it be static?
      drivers/net/ethernet/broadcom/tg3.c:7781:19: warning: Using plain integer as NULL pointer
      drivers/net/ethernet/broadcom/tg3.c:10231:31: error: bad constant expression
      Reported-by: NFengguang Wu <fenguang.wu@intel.com>
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      86449944
  16. 02 10月, 2012 1 次提交
  17. 30 9月, 2012 5 次提交