i40e: tighten up ring enable/disable flow
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 21 Feb 2014 03:29:16 +0000 (19:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Feb 2014 17:38:26 +0000 (12:38 -0500)
commit6c5ef6209d28bd2e75484e5cad070c898a7f5154
tree348713d2abe8bb1d246b53007a5b47f50529405d
parent81b8c0117d88adb9c72b3fa5feff0d1efac816bd
i40e: tighten up ring enable/disable flow

Change the do/while to a for loop, so we don't hit the delay each
time, even when the register is ready for action.
Don't bother to set or clear the QENA_STAT bit as it is
read-only.

Change-ID: Ie464718804dd79f6d726f291caa9b0c872b49978
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_main.c