This helps avoid excessive bus traffic and I/O overhead on
slower HCIs (e.g., USB, SDIO) caused by frequent power state
transitions.
Add RTW89_DM_INACTIVE_PS to the disabled_dm bitmap via debugfs and
check it in the rtw89_enter_ips path. When set, the driver skips
entering inactive power save and returns immediately.
Signed-off-by: Johnson Tsai <wenjie.tsai@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260420034051.17666-5-pkshih@realtek.com
RTW89_DM_TAS,
RTW89_DM_MLO,
RTW89_DM_HW_SCAN,
+ RTW89_DM_INACTIVE_PS,
};
#define RTW89_THERMAL_PROT_LV_MAX 5
DM_INFO(TAS),
DM_INFO(MLO),
DM_INFO(HW_SCAN),
+ DM_INFO(INACTIVE_PS),
};
static ssize_t
{
struct rtw89_vif_link *rtwvif_link;
struct rtw89_vif *rtwvif;
+ struct rtw89_hal *hal = &rtwdev->hal;
unsigned int link_id;
+ if (hal->disabled_dm_bitmap & BIT(RTW89_DM_INACTIVE_PS)) {
+ rtw89_debug(rtwdev, RTW89_DBG_PS, "skip enter IPS due to disabled_dm\n");
+ return;
+ }
+
set_bit(RTW89_FLAG_INACTIVE_PS, rtwdev->flags);
if (!test_bit(RTW89_FLAG_POWERON, rtwdev->flags))