Commit 8a274dfb authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

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: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-37-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f97c370
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment