1. 19 2月, 2014 1 次提交
  2. 17 1月, 2014 1 次提交
  3. 07 1月, 2014 1 次提交
  4. 18 12月, 2013 9 次提交
  5. 10 12月, 2013 1 次提交
  6. 18 10月, 2013 1 次提交
  7. 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
  8. 21 5月, 2013 1 次提交
  9. 14 5月, 2013 1 次提交
  10. 20 4月, 2013 3 次提交
  11. 18 3月, 2013 1 次提交
  12. 12 12月, 2012 3 次提交
  13. 04 12月, 2012 1 次提交
  14. 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
  15. 11 7月, 2012 1 次提交
  16. 30 4月, 2012 1 次提交
  17. 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
  18. 01 2月, 2012 1 次提交
  19. 06 1月, 2012 1 次提交
  20. 24 12月, 2011 2 次提交
  21. 20 12月, 2011 1 次提交
  22. 09 12月, 2011 1 次提交
  23. 01 11月, 2011 1 次提交
  24. 19 10月, 2011 1 次提交
  25. 30 9月, 2011 1 次提交
    • R
      bna: Add Callback to Fix RXQ Stop · 5bcf6ac0
      Rasesh Mody 提交于
      Change details:
       - Add a callback in the BNA, which is called before sending FW command to stop
         RxQs. After this callback is called, driver should not post anymore Rx
         buffers to the RxQ. This addresses a small window where driver posts Rx
         buffers while FW is stopping/has stopped the RxQ.
       - Registering callback function, rx_stall_cbfn, during bna_rx_create.
         Invoking callback function, rx_stall_cbfn, before sending rx_cfg_clr
         command to FW
       - Bnad_cb_rx_stall implementation - set a flag in the Rxq to mark buffer
         posting disabled state. While posting buffers check for the above flag.
      Signed-off-by: NGurunatha Karaje <gkaraje@brocade.com>
      Signed-off-by: NRasesh Mody <rmody@brocade.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5bcf6ac0