summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice
diff options
context:
space:
mode:
authorAnirudh Venkataramanan2019-04-16 19:35:00 +0200
committerJeff Kirsher2019-05-30 19:48:51 +0200
commited14245ab7593a6565a1b5f050a9bec88cae39f5 (patch)
tree85fc971a07c810ba5a2c9778c570f9c72e188751 /drivers/net/ethernet/intel/ice
parentice: Move define for ICE_AQC_DRIVER_UNLOADING (diff)
downloadkernel-qcow2-linux-ed14245ab7593a6565a1b5f050a9bec88cae39f5.tar.gz
kernel-qcow2-linux-ed14245ab7593a6565a1b5f050a9bec88cae39f5.tar.xz
kernel-qcow2-linux-ed14245ab7593a6565a1b5f050a9bec88cae39f5.zip
ice: Update function header
Add some details to the function header for ice_deinit_hw. Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c
index 6988eb8695f1..1c94be588716 100644
--- a/drivers/net/ethernet/intel/ice/ice_common.c
+++ b/drivers/net/ethernet/intel/ice/ice_common.c
@@ -862,6 +862,10 @@ err_unroll_cqinit:
/**
* ice_deinit_hw - unroll initialization operations done by ice_init_hw
* @hw: pointer to the hardware structure
+ *
+ * This should be called only during nominal operation, not as a result of
+ * ice_init_hw() failing since ice_init_hw() will take care of unrolling
+ * applicable initializations if it fails for any reason.
*/
void ice_deinit_hw(struct ice_hw *hw)
{