# Re: \[PATCH v2 1/5\] rtw88: use read\_poll\_timeout instead of fixed sleep

- From: Kalle Valo \<hidden\>
- Date: 2021-08-21 19:19:44 
- List: linux-wireless
- Page: https://ratatoskr.run/linux-wireless/2021/08/15768785
- Thread: https://ratatoskr.run/linux-wireless/2021/07/15768305/t.md

```text
Ping-Ke Shih [ref] wrote:

> From: Chin-Yen Lee <redacted>
> 
> In current wow flow, driver calls rtw_wow_fw_start and sleep for 100ms,
> to wait firmware finish preliminary work and then update the value of
> WOWLAN_WAKE_REASON register to zero. But later firmware will start wow
> function with power-saving mode, in which mode the value of
> WOWLAN_WAKE_REASON register is 0xea. So driver may get 0xea value and
> return fail. We use read_poll_timeout instead to check the value to avoid
> this issue.
> 
> Signed-off-by: Chin-Yen Lee <redacted>
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

5 patches applied to wireless-drivers-next.git, thanks.

02a55c0009a5 rtw88: use read_poll_timeout instead of fixed sleep
67368f14a816 rtw88: refine the setting of rsvd pages for different firmware
05e45887382c rtw88: wow: build wow function only if CONFIG_PM is on
4bac10f2de22 rtw88: wow: report wow reason through mac80211 api
69c7044526d9 rtw88: wow: fix size access error of probe request

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20210728014335.8785-2-pkshih@realtek.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

```
