]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: use msleep for long delays
authorArnd Bergmann <arnd@arndb.de>
Sat, 16 Apr 2016 20:35:08 +0000 (22:35 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:34 +0000 (21:47 -0800)
commitd238e17f7ae0bc8efa8038bff7f4ed8c10fe7327
treecf879adf1ebb86c56d95954b39d696370afd963d
parentfbf207942cc6a70a678300176f1c37e04b8791e5
ixgbe: use msleep for long delays

Orabug: 24568240

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>
(cherry picked from commit d4f90d9dca26efef7a1112a8f4258c90b73bb37f)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c