1. 24 Feb, 2015 38 commits
  2. 23 Feb, 2015 2 commits
    • David S. Miller's avatar
      Merge branch 'be2net-next' · 5e3d3189
      David S. Miller authored
      Sathya Perla says:
      
      ====================
      be2net: patch set
      
      Hi Dave, the following patch set reduces code duplication
      in probe/pci-resume/eeh-resume and remove/pci-suspend/eeh-error and UE-error
      detect/recovery paths. New helper routines have been introduced for this
      purpose. Pls apply this set to the net-next tree. Thanks!
      
      Patch 1 refactors the alloc/free code of adapter struct's fields into
      a new set of helper routines -- be_drv_init/cleanup().
      
      Patch 2 gets rid of the be_get_initial_config() routine as be_get_config()
      is the place holder for related code.
      
      Patch 3 introduces a new helper routine be_func_init() to execute the
      initialization code used in probe/pci-resume/eeh-resume to remove
      code duplication.
      
      Patch 4 introduces a wrapper for scheduling/canceling error detection
      task on similar lines to the be_worker task.
      
      Patch 5 refactors UE error detection and recovery code on similar lines
      to EEH code. Cleaning up resources is done in the error detection routine
      followed by error recovery.
      
      Patch 6 gets rid of the lancer_test_and_set_rdy_state() routine as the
      same code now available in be_func_init().
      
      Patch 7 creates a new helper routine be_resume() for all the common code
      in be_probe(), be_pci_resume() and be_eeh_resume(), to reduce code duplication.
      
      Patch 8 creates a new helper routine be_cleanup() for all the common
      cleanup code duplicated in the suspend/EEH err detection paths.
      
      Patch 9 moves be_func_init() inside be_setup() as everytime be_setup()
      is called, the driver will have to wait for the function/FW to be be
      initialized.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5e3d3189
    • Sathya Perla's avatar
      be2net: move be_func_init() call inside be_setup() · f962f840
      Sathya Perla authored
      Every time be_setup() is called, the driver will have to wait for the
      function/FW to be properly initialized. So, it make sense to move this call
      inside be_setup().
      Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
      Signed-off-by: default avatarKalesh AP <kalesh.purayil@emulex.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f962f840