mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
wifi: rtw89: refine C2H reg event polling timeout for LPS
The each of C2H reg event have different polling timeout. Refine the LPS C2H reg event polling timeout. Otherwise, during SER, the FW has already crashed, the leave LPS check will wait until timeout expires, causing the SER recovery to take too long. Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20251223030651.480633-10-pkshih@realtek.com
This commit is contained in:
parent
0ca9cb5b8d
commit
d38289fd12
|
|
@ -7053,6 +7053,9 @@ static int rtw89_fw_read_c2h_reg(struct rtw89_dev *rtwdev,
|
|||
else
|
||||
timeout = RTW89_C2H_TIMEOUT;
|
||||
|
||||
if (info->timeout)
|
||||
timeout = info->timeout;
|
||||
|
||||
ret = read_poll_timeout_atomic(rtw89_read8, val, val, 1,
|
||||
timeout, false, rtwdev,
|
||||
chip->c2h_ctrl_reg);
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ struct rtw89_h2creg_sch_tx_en {
|
|||
struct rtw89_mac_c2h_info {
|
||||
u8 id;
|
||||
u8 content_len;
|
||||
u32 timeout;
|
||||
union {
|
||||
u32 c2hreg[RTW89_C2HREG_MAX];
|
||||
struct rtw89_c2hreg_hdr hdr;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
static int rtw89_fw_receive_lps_h2c_check(struct rtw89_dev *rtwdev, u8 macid)
|
||||
{
|
||||
struct rtw89_mac_c2h_info c2h_info = {};
|
||||
struct rtw89_mac_c2h_info c2h_info = {.timeout = 5000};
|
||||
u16 c2hreg_macid;
|
||||
u32 c2hreg_ret;
|
||||
int ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user