1. 25 Mar, 2014 1 commit
  2. 21 Oct, 2013 1 commit
  3. 24 Sep, 2013 1 commit
  4. 19 Sep, 2013 1 commit
  5. 13 Aug, 2013 1 commit
  6. 05 Aug, 2013 2 commits
  7. 28 May, 2013 1 commit
  8. 04 Feb, 2013 1 commit
  9. 09 Jan, 2013 1 commit
  10. 07 Dec, 2012 1 commit
  11. 03 Dec, 2012 1 commit
  12. 03 Nov, 2012 1 commit
  13. 08 Oct, 2012 2 commits
  14. 07 Oct, 2012 1 commit
    • Peter Senna Tschudin's avatar
      drivers/net/ethernet/marvell/skge.c: fix error return code · bbcf61fb
      Peter Senna Tschudin authored
      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: default avatarPeter Senna Tschudin <peter.senna@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bbcf61fb
  15. 07 Feb, 2012 1 commit
  16. 31 Jan, 2012 1 commit
  17. 23 Jan, 2012 1 commit
  18. 22 Jan, 2012 2 commits
  19. 03 Jan, 2012 1 commit
  20. 31 Dec, 2011 1 commit
  21. 22 Nov, 2011 1 commit
  22. 08 Nov, 2011 1 commit
  23. 19 Oct, 2011 1 commit
  24. 07 Oct, 2011 1 commit
  25. 06 Oct, 2011 1 commit
  26. 27 Sep, 2011 1 commit
    • Stephen Hemminger's avatar
      skge: handle irq better on single port card · a9e9fd71
      Stephen Hemminger authored
      
      
      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: default avatarStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a9e9fd71
  27. 22 Sep, 2011 1 commit
  28. 18 Aug, 2011 1 commit
  29. 12 Aug, 2011 1 commit
  30. 07 Jul, 2011 4 commits
  31. 23 May, 2011 2 commits
    • Paul Gortmaker's avatar
      Add appropriate <linux/prefetch.h> include for prefetch users · 70c71606
      Paul Gortmaker authored
      
      
      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: default avatarPaul <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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      70c71606
    • Paul Gortmaker's avatar
      drivers/net: add prefetch header for prefetch users · c0cba59e
      Paul Gortmaker authored
      
      
      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: default avatarPaul <paul.gortmaker@windriver.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c0cba59e
  32. 29 Apr, 2011 2 commits