wireless: rtl8852bs: fix the warning about rg_interface lock not initialized
INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 1 PID: 2165 Comm: wpa_supplicant Not tainted 6.6.36+ #82 Hardware name: spacemit k1-x FusionOne board (DT) Call Trace: [<ffffffff8000693c>] dump_backtrace+0x1c/0x24 [<ffffffff80fae9f2>] show_stack+0x2c/0x38 [<ffffffff80fc4a36>] dump_stack_lvl+0x3c/0x54 [<ffffffff80fc4a62>] dump_stack+0x14/0x1c [<ffffffff8007e6da>] register_lock_class+0x42e/0x47e [<ffffffff8007d326>] __lock_acquire.isra.0+0x48/0x694 [<ffffffff8007da5e>] lock_acquire+0xec/0x1c2 [<ffffffff80fd02f8>] _raw_spin_lock_bh+0x38/0x76 [<ffffffff029305c4>] rtw_phl_query_regulation_info+0x26/0x56 [8852bs] [<ffffffff029b0c76>] rtw_hal_query_regulation+0x10/0x18 [8852bs] [<ffffffff02a301c6>] _send_bt_country_code+0xc2/0x108 [8852bs] [<ffffffff02a3152e>] _update_bt_scbd+0xbc/0x404 [8852bs] [<ffffffff02a331a8>] _ntfy_wl_rfk+0x10a/0x264 [8852bs] [<ffffffff02994ae6>] rtw_hal_btc_wl_rfk_ntfy+0x24/0x32 [8852bs] [<ffffffff02aba2b6>] halrf_btc_rfk_ntfy+0xf8/0x15e [8852bs] [<ffffffff02ab6bde>] halrf_dack_trigger+0x2c/0x18c [8852bs] [<ffffffff02acb3a0>] halrf_dm_init+0x90/0x156 [8852bs] [<ffffffff02992b9a>] rtw_hal_rf_dm_init+0x14/0x1c [8852bs] [<ffffffff02a47632>] hal_start_8852b+0x17c/0x2d0 [8852bs] [<ffffffff02a48fa8>] hal_start_8852bs+0x4c/0x6e [8852bs] [<ffffffff029995c0>] rtw_hal_start+0x24/0x210 [8852bs] [<ffffffff028fd660>] rtw_phl_start+0xc0/0x128 [8852bs] [<ffffffff028e2754>] rtw_hw_start+0x28/0x50 [8852bs] [<ffffffff0282e176>] netdev_open+0xce/0x33c [8852bs] [<ffffffff80cb6674>] __dev_open+0xcc/0x174 [<ffffffff80cb6a90>] __dev_change_flags+0x15c/0x1cc [<ffffffff80cb6b1e>] dev_change_flags+0x1e/0x56 [<ffffffff80d8fdd4>] devinet_ioctl+0x1ec/0x5fc [<ffffffff80d91812>] inet_ioctl+0x11c/0x152 [<ffffffff80c8a18c>] sock_do_ioctl+0x32/0xb4 [<ffffffff80c8afd0>] sock_ioctl+0xf2/0x2e8 [<ffffffff8026a6d8>] __riscv_sys_ioctl+0x86/0xae [<ffffffff80fc54e0>] do_trap_ecall_u+0xba/0x12e [<ffffffff80fd13f6>] ret_from_exception+0x0/0x6e Change-Id: I8315279ed046109a171b73376c60bb622c0f4ca3
This commit is contained in:
@@ -995,6 +995,12 @@ enum rtw_phl_status rtw_phl_init(void *drv_priv, void **phl,
|
||||
goto error_vers_check;
|
||||
}
|
||||
|
||||
if (false == rtw_phl_regu_interface_init(phl_info)) {
|
||||
phl_status = RTW_PHL_STATUS_HAL_INIT_FAILURE;
|
||||
PHL_ERR("rtw_phl_regu_interface_init failed\n");
|
||||
goto error_phl_regu_interface_init;
|
||||
}
|
||||
|
||||
hal_status = rtw_hal_init(drv_priv, phl_info->phl_com,
|
||||
&(phl_info->hal), ic_info->ic_id);
|
||||
if ((hal_status != RTW_HAL_STATUS_SUCCESS) || (phl_info->hal == NULL)) {
|
||||
@@ -1096,8 +1102,10 @@ error_phl_var_init:
|
||||
error_hal_var_init:
|
||||
error_hal_read_chip_info:
|
||||
rtw_hal_deinit(phl_info->phl_com, phl_info->hal);
|
||||
error_vers_check:
|
||||
error_hal_init:
|
||||
rtw_phl_regu_interface_deinit(phl_info);
|
||||
error_phl_regu_interface_init:
|
||||
error_vers_check:
|
||||
#ifdef CONFIG_RTW_ACS
|
||||
phl_acs_info_deinit(phl_info);
|
||||
error_phl_acs_info_init:
|
||||
@@ -1156,6 +1164,7 @@ void rtw_phl_deinit(void *phl)
|
||||
phl_qm_deinit(phl_info);
|
||||
#endif /* CONFIG_QOS_MG */
|
||||
rtw_hal_deinit(phl_info->phl_com, phl_info->hal);
|
||||
rtw_phl_regu_interface_deinit(phl_info);
|
||||
phl_var_deinit(phl_info);
|
||||
#ifdef CONFIG_FSM
|
||||
phl_fsm_module_deinit(phl_info);
|
||||
|
||||
Reference in New Issue
Block a user