diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-04-16 16:35:08 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-04-25 07:55:20 -0400 |
commit | d4f90d9dca26efef7a1112a8f4258c90b73bb37f (patch) | |
tree | b850cf40aa22d71a96db227eaeb366a9aacbe59d | |
parent | 7921f4dc4c36e736d7a5b45dfa7b6a755a4fc012 (diff) |
ixgbe: use msleep for long delays
The newly added x550em_a support causes a link failure on ARM because of
an overly long time passed into udelay():
ERROR: "__bad_udelay" [drivers/net/ethernet/intel/ixgbe/ixgbe.ko] undefined!
There are multiple variants of the ixgbe_acquire_swfw_sync_*() function,
and the other ones all use msleep(), so we can safely assume that all
callers are allowed to sleep, which makes msleep() a better replacement
than mdelay().
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 49425dfc7451 ("ixgbe: Add support for x550em_a 10G MAC type")
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c index c8a4f5ef06c0..19b75cd98682 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | |||
@@ -2765,7 +2765,7 @@ static s32 ixgbe_acquire_swfw_sync_x550em_a(struct ixgbe_hw *hw, u32 mask) | |||
2765 | ixgbe_release_swfw_sync_X540(hw, hmask); | 2765 | ixgbe_release_swfw_sync_X540(hw, hmask); |
2766 | if (status != IXGBE_ERR_TOKEN_RETRY) | 2766 | if (status != IXGBE_ERR_TOKEN_RETRY) |
2767 | return status; | 2767 | return status; |
2768 | udelay(FW_PHY_TOKEN_DELAY * 1000); | 2768 | msleep(FW_PHY_TOKEN_DELAY); |
2769 | } | 2769 | } |
2770 | 2770 | ||
2771 | return status; | 2771 | return status; |