wifi: rtw89: Lower the timeout in rtw89_fwdl_check_path_ready_ax() for USB
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Tue, 15 Jul 2025 19:46:20 +0000 (22:46 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 18 Jul 2025 06:22:35 +0000 (14:22 +0800)
commit12322a02603071d09df652bbc11864e23de0b83e
tree8f3c9808b1a26c1828ea19b2316225be25c76ddf
parent671be46afd1f03de9dc6e4679c88e1a7a81cdff6
wifi: rtw89: Lower the timeout in rtw89_fwdl_check_path_ready_ax() for USB

When the chip is not powered on correctly (like during driver
development) rtw89_fwdl_check_path_ready_ax() can fail.
read_poll_timeout_atomic() with a delay of 1 µs and a timeout of
400000 µs can take 50 seconds with USB because of the time it takes to
send a USB control message. The firmware upload is tried 5 times, so
in total it takes 250 seconds.

Lower the timeout to 3200 for USB in order to reduce the time
rtw89_fwdl_check_path_ready_ax() takes from 50 seconds to less than 1
second.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/af0b25d0-ea67-455e-91f2-8e4c18ae4328@gmail.com
drivers/net/wireless/realtek/rtw89/fw.h
drivers/net/wireless/realtek/rtw89/mac.c