diff options
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/lio_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c index 8a815bb57177..7e8454d3b1ad 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c | |||
@@ -91,6 +91,9 @@ static int octeon_console_debug_enabled(u32 console) | |||
91 | */ | 91 | */ |
92 | #define LIO_SYNC_OCTEON_TIME_INTERVAL_MS 60000 | 92 | #define LIO_SYNC_OCTEON_TIME_INTERVAL_MS 60000 |
93 | 93 | ||
94 | /* time to wait for possible in-flight requests in milliseconds */ | ||
95 | #define WAIT_INFLIGHT_REQUEST msecs_to_jiffies(1000) | ||
96 | |||
94 | struct lio_trusted_vf_ctx { | 97 | struct lio_trusted_vf_ctx { |
95 | struct completion complete; | 98 | struct completion complete; |
96 | int status; | 99 | int status; |
@@ -259,7 +262,7 @@ static inline void pcierror_quiesce_device(struct octeon_device *oct) | |||
259 | force_io_queues_off(oct); | 262 | force_io_queues_off(oct); |
260 | 263 | ||
261 | /* To allow for in-flight requests */ | 264 | /* To allow for in-flight requests */ |
262 | schedule_timeout_uninterruptible(100); | 265 | schedule_timeout_uninterruptible(WAIT_INFLIGHT_REQUEST); |
263 | 266 | ||
264 | if (wait_for_pending_requests(oct)) | 267 | if (wait_for_pending_requests(oct)) |
265 | dev_err(&oct->pci_dev->dev, "There were pending requests\n"); | 268 | dev_err(&oct->pci_dev->dev, "There were pending requests\n"); |