]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40evf: avoid an extra msleep while
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 5 Oct 2016 16:30:45 +0000 (09:30 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:40:54 +0000 (19:40 -0500)
commitb967e47360c369495354e22af9dbe4cac44e53ce
tree6bd27a135fcce29b4382f63da5c5630f14b20aa2
parentcba76491bb3bbc07e5d94a4d754027bfbb4fbd3a
i40evf: avoid an extra msleep while

Orabug: 24568124

Remove the second call to msleep outside the loop, and move the msleep
within the loop as the first step. This guarantees that a single loop
will wait the minimum time first, and then after the reset finishes we
no longer need an extra msleep.

Change-ID: Ib2086f0a142402b614f67846bc091754203a0b9a
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 7d3f04af69bed2db87d6a72d100e182f773e54b7)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c