1. 18 12月, 2013 7 次提交
  2. 10 12月, 2013 1 次提交
  3. 18 10月, 2013 1 次提交
  4. 17 9月, 2013 1 次提交
    • R
      DMA-API: net: brocade/bna/bnad.c: fix 32-bit DMA mask handling · 3e548079
      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))) {
      		*using_dac = true;
      	} 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)
      				goto release_regions;
      		}
      
      This means we only try and set the coherent DMA mask if we failed to
      set a 32-bit DMA mask, and only if both fail do we fail the driver.
      Adjust this so that if either setting fails, we fail the driver - and
      thereby end up properly setting both the DMA mask and the coherent
      DMA mask in the fallback case.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      3e548079
  5. 21 5月, 2013 1 次提交
  6. 14 5月, 2013 1 次提交
  7. 20 4月, 2013 3 次提交
  8. 18 3月, 2013 1 次提交
  9. 12 12月, 2012 3 次提交
  10. 04 12月, 2012 1 次提交
  11. 28 9月, 2012 1 次提交
    • D
      bna: Fix warning false positive. · e905ed57
      David S. Miller 提交于
      GCC can't see that in all non-error-return paths we do in fact
      set *using_dac to something.
      
      Add an explicit initialization to remove this warning:
      
      drivers/net/ethernet/brocade/bna/bnad.c: In function ‘bnad_pci_probe’:
      drivers/net/ethernet/brocade/bna/bnad.c:3079:5: warning: ‘using_dac’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      drivers/net/ethernet/brocade/bna/bnad.c:3233:7: note: ‘using_dac’ was declared here
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e905ed57
  12. 11 7月, 2012 1 次提交
  13. 30 4月, 2012 1 次提交
  14. 05 4月, 2012 3 次提交
    • J
      bna: Function name changes and cleanups · b3cc6e88
      Jing Huang 提交于
      Renamed following functions:
      bnad_cleanup_tx to bnad_destroy_tx
      bnad_free_all_txbufs to bnad_txq_cleanup
      bnad_free_txbufs to bnad_txcmpl_process
      bnad_tx to bnad_tx_complete
      bnad_cleanup_rx to bnad_destroy_rx
      bnad_reset_rcb to bnad_rcb_cleanup
      bnad_free_all_rxbufs to bnad_rxq_cleanup
      bnad_cq_cmpl_init to bnad_cq_cleanup
      bnad_alloc_n_post_rxbufs to bnad_rxq_post
      bnad_poll_cq to bnad_cq_process
      Signed-off-by: NJing Huang <huangj@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b3cc6e88
    • J
      bna: Remove tx tasklet · d95d1081
      Jing Huang 提交于
      The scheduling of tasklet and keeping the interrupts enabled makes interrupt
      reduntant. 20% of the Tx interrupts have nothing left to process or could not
      process as Tx tasklet was running.
      Signed-off-by: NJing Huang <huangj@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d95d1081
    • J
      bna: tx rx cleanup fix · 01b54b14
      Jing Huang 提交于
      This patch removes busy wait in tx/rx cleanup. bnad_cb_tx_cleanup() and
      bnad_cb_rx_cleanup() functions are called from irq context, and currently
      they do busy wait for the in-flight transmit or the currently executing napi
      polling routine to complete. To fix the issue, we create a workqueue to defer
      tx & rx cleanup processing, an in the tx rx cleanup handler, we will
      wait respective in flight processing to complete, before freeing the buffers.
      Signed-off-by: NJing Huang <huangj@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      01b54b14
  15. 01 2月, 2012 1 次提交
  16. 06 1月, 2012 1 次提交
  17. 24 12月, 2011 2 次提交
  18. 20 12月, 2011 1 次提交
  19. 09 12月, 2011 1 次提交
  20. 01 11月, 2011 1 次提交
  21. 19 10月, 2011 1 次提交
  22. 30 9月, 2011 3 次提交
  23. 22 9月, 2011 1 次提交
  24. 17 9月, 2011 2 次提交