mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
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 <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20191217161318.31402-37-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3f97c37063
commit
8a274dfb59
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user