From: Jérôme Pouiller Date: Tue, 17 Dec 2019 16:15:17 +0000 (+0000) Subject: staging: wfx: fix pm_mode timeout X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8a274dfb59209d0e0bd96f3a7917aceba39b0ca4;p=linux.git staging: wfx: fix pm_mode timeout Maximum request time (how long a request wait for the medium) is set in firmware to 512TU Signed-off-by: Jérôme Pouiller Link: https://lore.kernel.org/r/20191217161318.31402-37-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index dcb4693ec980a..42b0d01d85ccc 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -359,7 +359,7 @@ static int wfx_update_pm(struct wfx_vif *wvif) } if (!wait_for_completion_timeout(&wvif->set_pm_mode_complete, - msecs_to_jiffies(300))) + TU_TO_JIFFIES(512))) dev_warn(wvif->wdev->dev, "timeout while waiting of set_pm_mode_complete\n"); return hif_set_pm(wvif, &pm);