net: ipa: change stop channel retry delay
authorAlex Elder <elder@linaro.org>
Wed, 13 Jan 2021 17:15:31 +0000 (11:15 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 01:40:08 +0000 (17:40 -0800)
If a GSI stop channel command leaves the channel in STOP_IN_PROC
state, we retry the stop command after a 1-2 millisecond delay.

I have been told that a 3-5 millisecond delay is a better choice.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/gsi.c

index 4de769166978b1f545d05eb37be26acd123d6a88..5c163f9c0ea7b809f3a06465e9556dac8e5f2664 100644 (file)
@@ -903,7 +903,7 @@ int gsi_channel_stop(struct gsi *gsi, u32 channel_id)
                ret = gsi_channel_stop_command(channel);
                if (ret != -EAGAIN)
                        break;
-               usleep_range(USEC_PER_MSEC, 2 * USEC_PER_MSEC);
+               usleep_range(3 * USEC_PER_MSEC, 5 * USEC_PER_MSEC);
        } while (retries--);
 
        mutex_unlock(&gsi->mutex);