1. 01 4月, 2014 1 次提交
  2. 21 3月, 2014 3 次提交
  3. 20 3月, 2014 3 次提交
  4. 15 3月, 2014 1 次提交
  5. 13 3月, 2014 1 次提交
  6. 08 3月, 2014 1 次提交
  7. 01 3月, 2014 2 次提交
  8. 19 2月, 2014 1 次提交
  9. 18 1月, 2014 7 次提交
  10. 17 1月, 2014 3 次提交
  11. 18 12月, 2013 1 次提交
  12. 10 12月, 2013 1 次提交
  13. 01 11月, 2013 2 次提交
  14. 29 10月, 2013 4 次提交
  15. 24 10月, 2013 3 次提交
  16. 02 10月, 2013 3 次提交
  17. 22 9月, 2013 1 次提交
    • R
      DMA-API: net: intel/ixgbevf: fix 32-bit DMA mask handling · 53567aa4
      Russell King 提交于
      The fallback to 32-bit DMA mask is rather odd:
      	if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) &&
      	    !dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
      		pci_using_dac = 1;
      	} else {
      		err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
      		if (err) {
      			err = dma_set_coherent_mask(&pdev->dev,
      						    DMA_BIT_MASK(32));
      			if (err) {
      				dev_err(&pdev->dev, "No usable DMA "
      					"configuration, aborting\n");
      				goto err_dma;
      			}
      		}
      		pci_using_dac = 0;
      	}
      This means we only set the coherent DMA mask in the fallback path if
      the DMA mask set failed, which is silly.  This fixes it to set the
      coherent DMA mask only if dma_set_mask() succeeded, and to error out
      if either fails.
      Acked-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      53567aa4
  18. 04 9月, 2013 1 次提交
    • J
      drivers/net: Convert uses of compare_ether_addr to ether_addr_equal · 7367d0b5
      Joe Perches 提交于
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      
      Done via cocci script: (and a little typing)
      
      $ cat compare_ether_addr.cocci
      @@
      expression a,b;
      @@
      -	!compare_ether_addr(a, b)
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	compare_ether_addr(a, b)
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) == 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) != 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) == 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) != 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!!ether_addr_equal(a, b)
      +	ether_addr_equal(a, b)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7367d0b5
  19. 20 4月, 2013 1 次提交