1. 25 5月, 2013 4 次提交
  2. 23 5月, 2013 3 次提交
  3. 20 5月, 2013 4 次提交
  4. 15 5月, 2013 2 次提交
  5. 01 5月, 2013 1 次提交
  6. 30 4月, 2013 1 次提交
  7. 20 4月, 2013 2 次提交
  8. 17 4月, 2013 1 次提交
  9. 10 4月, 2013 11 次提交
  10. 28 3月, 2013 1 次提交
  11. 18 3月, 2013 1 次提交
  12. 13 3月, 2013 1 次提交
  13. 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
  14. 08 3月, 2013 6 次提交
  15. 19 2月, 2013 1 次提交
    • J
      tg3: Use different macros for pci_chip_rev_id accesses · 4153577a
      Joe Perches 提交于
      Upper case macros for various chip attributes are slightly
      difficult to read and are a bit out of characterto the other
      tg3_<foo> attribute functions.
      
      Convert:
      
      GET_ASIC_REV(tp->pci_chip_rev_id)       -> tg3_asic_rev(tp)
      GET_CHIP_REV(tp->pci_chip_rev_id)       -> tg3_chip_rev(tp)
      
      Remove:
      GET_METAL_REV(tp->pci_chip_rev_id)      -> tg3_metal_rev(tp) (unused)
      
      Add:
      tg3_chip_rev_id(tp) for tp->pci_chip_rev_id so access styles
      are similar to tg3_asic_rev and tg3_chip_rev.
      
      These macros are not converted to static inline functions
      because gcc (tested with 4.7.2) is currently unable to
      optimize the object code it produces the same way and code
      is otherwise larger.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Acked-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4153577a