ionic: shorter dev cmd wait time
authorShannon Nelson <snelson@pensando.io>
Tue, 12 May 2020 00:59:31 +0000 (17:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2020 19:19:30 +0000 (12:19 -0700)
Shorten our msleep time while polling for the dev command
request to finish.  Yes, checkpatch.pl complains that the
msleep might actually go longer - that won't hurt, but we'll
take the shorter time if we can get it.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_main.c

index 8e2436d14621377fb2fab63d8e2242a0fd9b5c4e..c3f0f84164d3ca799acff53dac9fd1c46d4ccc90 100644 (file)
@@ -358,7 +358,7 @@ try_again:
                done = ionic_dev_cmd_done(idev);
                if (done)
                        break;
-               msleep(20);
+               msleep(5);
                hb = ionic_heartbeat_check(ionic);
        } while (!done && !hb && time_before(jiffies, max_wait));
        duration = jiffies - start_time;