1. 13 8月, 2014 1 次提交
  2. 19 6月, 2014 1 次提交
  3. 25 3月, 2014 1 次提交
  4. 22 10月, 2013 1 次提交
  5. 24 9月, 2013 1 次提交
  6. 20 9月, 2013 1 次提交
  7. 14 8月, 2013 1 次提交
  8. 05 8月, 2013 2 次提交
  9. 29 5月, 2013 1 次提交
  10. 05 2月, 2013 1 次提交
  11. 09 1月, 2013 1 次提交
  12. 08 12月, 2012 1 次提交
  13. 04 12月, 2012 1 次提交
  14. 04 11月, 2012 1 次提交
  15. 09 10月, 2012 2 次提交
  16. 08 10月, 2012 1 次提交
    • P
      drivers/net/ethernet/marvell/skge.c: fix error return code · bbcf61fb
      Peter Senna Tschudin 提交于
      The function skge_probe() return 0 for success and negative value
      for most of its internal tests failures. There is one exception
      that is error case going to err_out_led_off:. For this error case, the
      function abort its success execution path, but returns non negative
      value, making it difficult for a caller function to notice the error.
      
      This patch fixes the error case that do not return negative value.
      
      This was found by Coccinelle, but the code change was made by hand.
      This patch is not robot generated.
      
      A simplified version of the semantic match that finds this problem is
      as follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      (
      if@p1 (\(ret < 0\|ret != 0\))
       { ... return ret; }
      |
      ret@p1 = 0
      )
      ... when != ret = e1
          when != &ret
      *if(...)
      {
        ... when != ret = e2
            when forall
       return ret;
      }
      // </smpl>
      Signed-off-by: NPeter Senna Tschudin <peter.senna@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bbcf61fb
  17. 08 2月, 2012 1 次提交
  18. 01 2月, 2012 1 次提交
  19. 24 1月, 2012 1 次提交
  20. 23 1月, 2012 2 次提交
  21. 04 1月, 2012 1 次提交
  22. 31 12月, 2011 1 次提交
  23. 23 11月, 2011 1 次提交
  24. 09 11月, 2011 1 次提交
  25. 19 10月, 2011 1 次提交
  26. 08 10月, 2011 1 次提交
  27. 07 10月, 2011 1 次提交
  28. 28 9月, 2011 1 次提交
    • S
      skge: handle irq better on single port card · a9e9fd71
      Stephen Hemminger 提交于
      Most boards with SysKonnect/Marvell Ethernet have only a single port.
      For the single port case, use the standard Ethernet driver convention
      of allocating IRQ when device is brought up rather than at probe time.
      
      This patch also adds some additional read after writes to avoid any
      PCI posting problems when setting the IRQ mask.
      
      The error handling of dual port cards is also changed.  If second port
      can not be brought up, then just fail. No point in continuing, since
      the failure is most certainly because of out of memory.
      
      It is worth noting that the dual port skge device has a single irq but two
      seperate status rings and therefore has two NAPI objects, one for
      each port.
      Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a9e9fd71
  29. 23 9月, 2011 1 次提交
  30. 18 8月, 2011 1 次提交
  31. 12 8月, 2011 1 次提交
  32. 07 7月, 2011 4 次提交
  33. 23 5月, 2011 2 次提交
    • P
      Add appropriate <linux/prefetch.h> include for prefetch users · 70c71606
      Paul Gortmaker 提交于
      After discovering that wide use of prefetch on modern CPUs
      could be a net loss instead of a win, net drivers which were
      relying on the implicit inclusion of prefetch.h via the list
      headers showed up in the resulting cleanup fallout.  Give
      them an explicit include via the following $0.02 script.
      
       =========================================
       #!/bin/bash
       MANUAL=""
       for i in `git grep -l 'prefetch(.*)' .` ; do
       	grep -q '<linux/prefetch.h>' $i
       	if [ $? = 0 ] ; then
       		continue
       	fi
      
       	(	echo '?^#include <linux/?a'
       		echo '#include <linux/prefetch.h>'
       		echo .
       		echo w
       		echo q
       	) | ed -s $i > /dev/null 2>&1
       	if [ $? != 0 ]; then
       		echo $i needs manual fixup
       		MANUAL="$i $MANUAL"
       	fi
       done
       echo ------------------- 8\<----------------------
       echo vi $MANUAL
       =========================================
      Signed-off-by: NPaul <paul.gortmaker@windriver.com>
      [ Fixed up some incorrect #include placements, and added some
        non-network drivers and the fib_trie.c case    - Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      70c71606
    • P
      drivers/net: add prefetch header for prefetch users · c0cba59e
      Paul Gortmaker 提交于
      After discovering that wide use of prefetch on modern CPUs
      could be a net loss instead of a win, net drivers which were
      relying on the implicit inclusion of prefetch.h via the list
      headers showed up in the resulting cleanup fallout.  Give
      them an explicit include via the following $0.02 script.
      
       =========================================
       #!/bin/bash
       MANUAL=""
       for i in `git grep -l 'prefetch(.*)' .` ; do
       	grep -q '<linux/prefetch.h>' $i
       	if [ $? = 0 ] ; then
       		continue
       	fi
      
       	(	echo '?^#include <linux/?a'
       		echo '#include <linux/prefetch.h>'
       		echo .
       		echo w
       		echo q
       	) | ed -s $i > /dev/null 2>&1
       	if [ $? != 0 ]; then
       		echo $i needs manual fixup
       		MANUAL="$i $MANUAL"
       	fi
       done
       echo ------------------- 8\<----------------------
       echo vi $MANUAL
       =========================================
      Signed-off-by: NPaul <paul.gortmaker@windriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c0cba59e