mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -04:00
wifi: rtw89: Disable deep power saving for USB/SDIO
Disable deep power saving for USB and SDIO because rtw89_mac_send_rpwm() is called in atomic context and accessing hardware registers results in "scheduling while atomic" errors. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/0f49eceb-0de0-47e2-ba36-3c6a0dddd17d@gmail.com
This commit is contained in:
committed by
Ping-Ke Shih
parent
02a44c2630
commit
a3b871a0f7
@@ -2884,6 +2884,9 @@ static enum rtw89_ps_mode rtw89_update_ps_mode(struct rtw89_dev *rtwdev)
|
||||
{
|
||||
const struct rtw89_chip_info *chip = rtwdev->chip;
|
||||
|
||||
if (rtwdev->hci.type != RTW89_HCI_TYPE_PCIE)
|
||||
return RTW89_PS_MODE_NONE;
|
||||
|
||||
if (rtw89_disable_ps_mode || !chip->ps_mode_supported ||
|
||||
RTW89_CHK_FW_FEATURE(NO_DEEP_PS, &rtwdev->fw))
|
||||
return RTW89_PS_MODE_NONE;
|
||||
|
||||
Reference in New Issue
Block a user