1. 24 Feb, 2015 36 commits
  2. 23 Feb, 2015 4 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
    • Kalesh AP's avatar
      be2net: refactor adapter resource cleanup sequence into be_cleanup() · 87ac1a52
      Kalesh AP authored
      Most of the resource cleanup sequences performed in be_suspend(),
      be_eeh_err_detected() and be_err_detection_task() are same. Moved the
      common code to a new routine be_cleanup() to avoid code duplication.
      Signed-off-by: default avatarKalesh AP <kalesh.purayil@emulex.com>
      Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      87ac1a52
    • Kalesh AP's avatar
      be2net: refactor adapter resource initialzation sequence into be_resume() · 484d76fd
      Kalesh AP authored
      Most of the adapter initialisation sequences performed in be_resume(),
      be_eeh_resume() and be_err_recover() are same. Renamed be_resume() to
      be_pci_resume() and moved the common code to a new routine be_resume() to
      avoid code duplication.
      Signed-off-by: default avatarKalesh AP <kalesh.purayil@emulex.com>
      Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      484d76fd