Commit 2d15acac authored by Larry Finger's avatar Larry Finger Committed by Kalle Valo

rtlwifi: rtl8192se: Remove all instances of DBG_EMERG

This is a step toward eliminating the RT_TRACE macros. Those calls that
have DBG_EMERG as the level are always logged, and they represent error
conditions, thus they are replaced with pr_err().
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent c7532b87
...@@ -113,8 +113,7 @@ static u8 _rtl92s_firmware_header_map_rftype(struct ieee80211_hw *hw) ...@@ -113,8 +113,7 @@ static u8 _rtl92s_firmware_header_map_rftype(struct ieee80211_hw *hw)
case RF_2T2R: case RF_2T2R:
return 0x22; return 0x22;
default: default:
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Unknown RF type(%x)\n", pr_err("Unknown RF type(%x)\n", rtlphy->rf_type);
rtlphy->rf_type);
break; break;
} }
return 0x22; return 0x22;
...@@ -168,9 +167,7 @@ static bool _rtl92s_firmware_downloadcode(struct ieee80211_hw *hw, ...@@ -168,9 +167,7 @@ static bool _rtl92s_firmware_downloadcode(struct ieee80211_hw *hw,
_rtl92s_fw_set_rqpn(hw); _rtl92s_fw_set_rqpn(hw);
if (buffer_len >= MAX_FIRMWARE_CODE_SIZE) { if (buffer_len >= MAX_FIRMWARE_CODE_SIZE) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Size over FIRMWARE_CODE_SIZE!\n");
"Size over FIRMWARE_CODE_SIZE!\n");
return false; return false;
} }
...@@ -239,8 +236,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw, ...@@ -239,8 +236,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw,
} while (pollingcnt--); } while (pollingcnt--);
if (!(cpustatus & IMEM_CHK_RPT) || (pollingcnt <= 0)) { if (!(cpustatus & IMEM_CHK_RPT) || (pollingcnt <= 0)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("FW_STATUS_LOAD_IMEM FAIL CPU, Status=%x\n",
"FW_STATUS_LOAD_IMEM FAIL CPU, Status=%x\n",
cpustatus); cpustatus);
goto status_check_fail; goto status_check_fail;
} }
...@@ -257,8 +253,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw, ...@@ -257,8 +253,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw,
} while (pollingcnt--); } while (pollingcnt--);
if (!(cpustatus & EMEM_CHK_RPT) || (pollingcnt <= 0)) { if (!(cpustatus & EMEM_CHK_RPT) || (pollingcnt <= 0)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("FW_STATUS_LOAD_EMEM FAIL CPU, Status=%x\n",
"FW_STATUS_LOAD_EMEM FAIL CPU, Status=%x\n",
cpustatus); cpustatus);
goto status_check_fail; goto status_check_fail;
} }
...@@ -266,8 +261,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw, ...@@ -266,8 +261,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw,
/* Turn On CPU */ /* Turn On CPU */
rtstatus = _rtl92s_firmware_enable_cpu(hw); rtstatus = _rtl92s_firmware_enable_cpu(hw);
if (!rtstatus) { if (!rtstatus) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Enable CPU fail!\n");
"Enable CPU fail!\n");
goto status_check_fail; goto status_check_fail;
} }
break; break;
...@@ -282,8 +276,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw, ...@@ -282,8 +276,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw,
} while (pollingcnt--); } while (pollingcnt--);
if (!(cpustatus & DMEM_CODE_DONE) || (pollingcnt <= 0)) { if (!(cpustatus & DMEM_CODE_DONE) || (pollingcnt <= 0)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Polling DMEM code done fail ! cpustatus(%#x)\n",
"Polling DMEM code done fail ! cpustatus(%#x)\n",
cpustatus); cpustatus);
goto status_check_fail; goto status_check_fail;
} }
...@@ -308,8 +301,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw, ...@@ -308,8 +301,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw,
if (((cpustatus & LOAD_FW_READY) != LOAD_FW_READY) || if (((cpustatus & LOAD_FW_READY) != LOAD_FW_READY) ||
(pollingcnt <= 0)) { (pollingcnt <= 0)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Polling Load Firmware ready fail ! cpustatus(%x)\n",
"Polling Load Firmware ready fail ! cpustatus(%x)\n",
cpustatus); cpustatus);
goto status_check_fail; goto status_check_fail;
} }
...@@ -331,8 +323,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw, ...@@ -331,8 +323,7 @@ static bool _rtl92s_firmware_checkready(struct ieee80211_hw *hw,
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, pr_err("Unknown status check!\n");
"Unknown status check!\n");
rtstatus = false; rtstatus = false;
break; break;
} }
...@@ -380,8 +371,7 @@ int rtl92s_download_fw(struct ieee80211_hw *hw) ...@@ -380,8 +371,7 @@ int rtl92s_download_fw(struct ieee80211_hw *hw)
/* 2. Retrieve IMEM image. */ /* 2. Retrieve IMEM image. */
if ((pfwheader->img_imem_size == 0) || (pfwheader->img_imem_size > if ((pfwheader->img_imem_size == 0) || (pfwheader->img_imem_size >
sizeof(firmware->fw_imem))) { sizeof(firmware->fw_imem))) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("memory for data image is less than IMEM required\n");
"memory for data image is less than IMEM required\n");
goto fail; goto fail;
} else { } else {
puc_mappedfile += fwhdr_size; puc_mappedfile += fwhdr_size;
...@@ -393,8 +383,7 @@ int rtl92s_download_fw(struct ieee80211_hw *hw) ...@@ -393,8 +383,7 @@ int rtl92s_download_fw(struct ieee80211_hw *hw)
/* 3. Retriecve EMEM image. */ /* 3. Retriecve EMEM image. */
if (pfwheader->img_sram_size > sizeof(firmware->fw_emem)) { if (pfwheader->img_sram_size > sizeof(firmware->fw_emem)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("memory for data image is less than EMEM required\n");
"memory for data image is less than EMEM required\n");
goto fail; goto fail;
} else { } else {
puc_mappedfile += firmware->fw_imem_len; puc_mappedfile += firmware->fw_imem_len;
...@@ -428,8 +417,7 @@ int rtl92s_download_fw(struct ieee80211_hw *hw) ...@@ -428,8 +417,7 @@ int rtl92s_download_fw(struct ieee80211_hw *hw)
RT_8192S_FIRMWARE_HDR_EXCLUDE_PRI_SIZE; RT_8192S_FIRMWARE_HDR_EXCLUDE_PRI_SIZE;
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Unexpected Download step!!\n");
"Unexpected Download step!!\n");
goto fail; goto fail;
} }
...@@ -438,14 +426,14 @@ int rtl92s_download_fw(struct ieee80211_hw *hw) ...@@ -438,14 +426,14 @@ int rtl92s_download_fw(struct ieee80211_hw *hw)
ul_filelength); ul_filelength);
if (!rtstatus) { if (!rtstatus) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "fail!\n"); pr_err("fail!\n");
goto fail; goto fail;
} }
/* <3> Check whether load FW process is ready */ /* <3> Check whether load FW process is ready */
rtstatus = _rtl92s_firmware_checkready(hw, fwstatus); rtstatus = _rtl92s_firmware_checkready(hw, fwstatus);
if (!rtstatus) { if (!rtstatus) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "fail!\n"); pr_err("rtl8192se: firmware fail!\n");
goto fail; goto fail;
} }
......
...@@ -75,12 +75,10 @@ void rtl92se_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) ...@@ -75,12 +75,10 @@ void rtl92se_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
} }
case HAL_DEF_WOWLAN: case HAL_DEF_WOWLAN:
break; break;
default: { default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("switch case %#x not processed\n", variable);
"switch case %#x not processed\n", variable);
break; break;
} }
}
} }
void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
...@@ -294,8 +292,7 @@ void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) ...@@ -294,8 +292,7 @@ void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
acm_ctrl &= (~AcmHw_VoqEn); acm_ctrl &= (~AcmHw_VoqEn);
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("switch case %#x not processed\n",
"switch case %#x not processed\n",
e_aci); e_aci);
break; break;
} }
...@@ -431,8 +428,7 @@ void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) ...@@ -431,8 +428,7 @@ void rtl92se_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
} }
break; } break; }
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("switch case %#x not processed\n", variable);
"switch case %#x not processed\n", variable);
break; break;
} }
...@@ -745,8 +741,7 @@ static void _rtl92se_macconfig_before_fwdownload(struct ieee80211_hw *hw) ...@@ -745,8 +741,7 @@ static void _rtl92se_macconfig_before_fwdownload(struct ieee80211_hw *hw)
} while (pollingcnt--); } while (pollingcnt--);
if (pollingcnt <= 0) { if (pollingcnt <= 0) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Polling TXDMA_INIT_VALUE timeout!! Current TCR(%#x)\n",
"Polling TXDMA_INIT_VALUE timeout!! Current TCR(%#x)\n",
tmpu1b); tmpu1b);
tmpu1b = rtl_read_byte(rtlpriv, CMDR); tmpu1b = rtl_read_byte(rtlpriv, CMDR);
rtl_write_byte(rtlpriv, CMDR, tmpu1b & (~TXDMA_EN)); rtl_write_byte(rtlpriv, CMDR, tmpu1b & (~TXDMA_EN));
...@@ -1004,7 +999,7 @@ int rtl92se_hw_init(struct ieee80211_hw *hw) ...@@ -1004,7 +999,7 @@ int rtl92se_hw_init(struct ieee80211_hw *hw)
/* 3. Initialize MAC/PHY Config by MACPHY_reg.txt */ /* 3. Initialize MAC/PHY Config by MACPHY_reg.txt */
if (!rtl92s_phy_mac_config(hw)) { if (!rtl92s_phy_mac_config(hw)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "MAC Config failed\n"); pr_err("MAC Config failed\n");
err = rtstatus; err = rtstatus;
goto exit; goto exit;
} }
...@@ -1024,7 +1019,7 @@ int rtl92se_hw_init(struct ieee80211_hw *hw) ...@@ -1024,7 +1019,7 @@ int rtl92se_hw_init(struct ieee80211_hw *hw)
/* 4. Initialize BB After MAC Config PHY_reg.txt, AGC_Tab.txt */ /* 4. Initialize BB After MAC Config PHY_reg.txt, AGC_Tab.txt */
if (!rtl92s_phy_bb_config(hw)) { if (!rtl92s_phy_bb_config(hw)) {
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "BB Config failed\n"); pr_err("BB Config failed\n");
err = rtstatus; err = rtstatus;
goto exit; goto exit;
} }
...@@ -1194,8 +1189,7 @@ static int _rtl92se_set_media_status(struct ieee80211_hw *hw, ...@@ -1194,8 +1189,7 @@ static int _rtl92se_set_media_status(struct ieee80211_hw *hw,
"Set Network type to AP!\n"); "Set Network type to AP!\n");
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Network type %d not supported!\n", type);
"Network type %d not supported!\n", type);
return 1; return 1;
} }
...@@ -1685,8 +1679,7 @@ static void _rtl92se_read_adapter_info(struct ieee80211_hw *hw) ...@@ -1685,8 +1679,7 @@ static void _rtl92se_read_adapter_info(struct ieee80211_hw *hw)
break; break;
case EEPROM_93C46: case EEPROM_93C46:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("RTL819X Not boot from eeprom, check it !!\n");
"RTL819X Not boot from eeprom, check it !!\n");
return; return;
default: default:
...@@ -2030,7 +2023,7 @@ void rtl92se_read_eeprom_info(struct ieee80211_hw *hw) ...@@ -2030,7 +2023,7 @@ void rtl92se_read_eeprom_info(struct ieee80211_hw *hw)
rtlefuse->autoload_failflag = false; rtlefuse->autoload_failflag = false;
_rtl92se_read_adapter_info(hw); _rtl92se_read_adapter_info(hw);
} else { } else {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Autoload ERR!!\n"); pr_err("Autoload ERR!!\n");
rtlefuse->autoload_failflag = true; rtlefuse->autoload_failflag = true;
} }
} }
...@@ -2463,8 +2456,8 @@ void rtl92se_set_key(struct ieee80211_hw *hw, u32 key_index, u8 *p_macaddr, ...@@ -2463,8 +2456,8 @@ void rtl92se_set_key(struct ieee80211_hw *hw, u32 key_index, u8 *p_macaddr,
enc_algo = CAM_AES; enc_algo = CAM_AES;
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("switch case %#x not processed\n",
"switch case %#x not processed\n", enc_algo); enc_algo);
enc_algo = CAM_TKIP; enc_algo = CAM_TKIP;
break; break;
} }
...@@ -2481,9 +2474,7 @@ void rtl92se_set_key(struct ieee80211_hw *hw, u32 key_index, u8 *p_macaddr, ...@@ -2481,9 +2474,7 @@ void rtl92se_set_key(struct ieee80211_hw *hw, u32 key_index, u8 *p_macaddr,
entry_id = rtl_cam_get_free_entry(hw, entry_id = rtl_cam_get_free_entry(hw,
p_macaddr); p_macaddr);
if (entry_id >= TOTAL_CAM_ENTRY) { if (entry_id >= TOTAL_CAM_ENTRY) {
RT_TRACE(rtlpriv, pr_err("Can not find free hw security cam entry\n");
COMP_SEC, DBG_EMERG,
"Can not find free hw security cam entry\n");
return; return;
} }
} else { } else {
......
...@@ -63,8 +63,8 @@ void rtl92se_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled) ...@@ -63,8 +63,8 @@ void rtl92se_sw_led_on(struct ieee80211_hw *hw, struct rtl_led *pled)
rtl_write_byte(rtlpriv, LEDCFG, ledcfg & 0x0f); rtl_write_byte(rtlpriv, LEDCFG, ledcfg & 0x0f);
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("switch case %#x not processed\n",
"switch case %#x not processed\n", pled->ledpin); pled->ledpin);
break; break;
} }
pled->ledon = true; pled->ledon = true;
...@@ -99,8 +99,8 @@ void rtl92se_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled) ...@@ -99,8 +99,8 @@ void rtl92se_sw_led_off(struct ieee80211_hw *hw, struct rtl_led *pled)
rtl_write_byte(rtlpriv, LEDCFG, (ledcfg | BIT(3))); rtl_write_byte(rtlpriv, LEDCFG, (ledcfg | BIT(3)));
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("switch case %#x not processed\n",
"switch case %#x not processed\n", pled->ledpin); pled->ledpin);
break; break;
} }
pled->ledon = false; pled->ledon = false;
......
...@@ -235,7 +235,6 @@ void rtl92s_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, ...@@ -235,7 +235,6 @@ void rtl92s_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath,
void rtl92s_phy_scan_operation_backup(struct ieee80211_hw *hw, void rtl92s_phy_scan_operation_backup(struct ieee80211_hw *hw,
u8 operation) u8 operation)
{ {
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
if (!is_hal_stop(rtlhal)) { if (!is_hal_stop(rtlhal)) {
...@@ -247,8 +246,7 @@ void rtl92s_phy_scan_operation_backup(struct ieee80211_hw *hw, ...@@ -247,8 +246,7 @@ void rtl92s_phy_scan_operation_backup(struct ieee80211_hw *hw,
rtl92s_phy_set_fw_cmd(hw, FW_CMD_RESUME_DM_BY_SCAN); rtl92s_phy_set_fw_cmd(hw, FW_CMD_RESUME_DM_BY_SCAN);
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Unknown operation\n");
"Unknown operation\n");
break; break;
} }
} }
...@@ -288,8 +286,8 @@ void rtl92s_phy_set_bw_mode(struct ieee80211_hw *hw, ...@@ -288,8 +286,8 @@ void rtl92s_phy_set_bw_mode(struct ieee80211_hw *hw,
rtl_write_byte(rtlpriv, BW_OPMODE, reg_bw_opmode); rtl_write_byte(rtlpriv, BW_OPMODE, reg_bw_opmode);
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("unknown bandwidth: %#X\n",
"unknown bandwidth: %#X\n", rtlphy->current_chan_bw); rtlphy->current_chan_bw);
break; break;
} }
...@@ -313,8 +311,8 @@ void rtl92s_phy_set_bw_mode(struct ieee80211_hw *hw, ...@@ -313,8 +311,8 @@ void rtl92s_phy_set_bw_mode(struct ieee80211_hw *hw,
rtl_write_byte(rtlpriv, RFPGA0_ANALOGPARAMETER2, 0x18); rtl_write_byte(rtlpriv, RFPGA0_ANALOGPARAMETER2, 0x18);
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("unknown bandwidth: %#X\n",
"unknown bandwidth: %#X\n", rtlphy->current_chan_bw); rtlphy->current_chan_bw);
break; break;
} }
...@@ -437,8 +435,7 @@ static bool _rtl92s_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw, ...@@ -437,8 +435,7 @@ static bool _rtl92s_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
} }
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("switch case %#x not processed\n",
"switch case %#x not processed\n",
currentcmd->cmdid); currentcmd->cmdid);
break; break;
} }
...@@ -644,8 +641,8 @@ bool rtl92s_phy_set_rf_power_state(struct ieee80211_hw *hw, ...@@ -644,8 +641,8 @@ bool rtl92s_phy_set_rf_power_state(struct ieee80211_hw *hw,
_rtl92se_phy_set_rf_sleep(hw); _rtl92se_phy_set_rf_sleep(hw);
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("switch case %#x not processed\n",
"switch case %#x not processed\n", rfpwr_state); rfpwr_state);
bresult = false; bresult = false;
break; break;
} }
...@@ -937,8 +934,7 @@ static bool _rtl92s_phy_bb_config_parafile(struct ieee80211_hw *hw) ...@@ -937,8 +934,7 @@ static bool _rtl92s_phy_bb_config_parafile(struct ieee80211_hw *hw)
} }
if (!rtstatus) { if (!rtstatus) {
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, pr_err("Write BB Reg Fail!!\n");
"Write BB Reg Fail!!\n");
goto phy_BB8190_Config_ParaFile_Fail; goto phy_BB8190_Config_ParaFile_Fail;
} }
...@@ -951,8 +947,7 @@ static bool _rtl92s_phy_bb_config_parafile(struct ieee80211_hw *hw) ...@@ -951,8 +947,7 @@ static bool _rtl92s_phy_bb_config_parafile(struct ieee80211_hw *hw)
BASEBAND_CONFIG_PHY_REG); BASEBAND_CONFIG_PHY_REG);
} }
if (!rtstatus) { if (!rtstatus) {
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, pr_err("_rtl92s_phy_bb_config_parafile(): BB_PG Reg Fail!!\n");
"_rtl92s_phy_bb_config_parafile(): BB_PG Reg Fail!!\n");
goto phy_BB8190_Config_ParaFile_Fail; goto phy_BB8190_Config_ParaFile_Fail;
} }
...@@ -1077,11 +1072,9 @@ bool rtl92s_phy_bb_config(struct ieee80211_hw *hw) ...@@ -1077,11 +1072,9 @@ bool rtl92s_phy_bb_config(struct ieee80211_hw *hw)
(rtlphy->rf_type == RF_1T2R && rf_num != 2) || (rtlphy->rf_type == RF_1T2R && rf_num != 2) ||
(rtlphy->rf_type == RF_2T2R && rf_num != 2) || (rtlphy->rf_type == RF_2T2R && rf_num != 2) ||
(rtlphy->rf_type == RF_2T2R_GREEN && rf_num != 2)) { (rtlphy->rf_type == RF_2T2R_GREEN && rf_num != 2)) {
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, pr_err("RF_Type(%x) does not match RF_Num(%x)!!\n",
"RF_Type(%x) does not match RF_Num(%x)!!\n",
rtlphy->rf_type, rf_num); rtlphy->rf_type, rf_num);
RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, pr_err("path1 0x%x, path2 0x%x, pathmap 0x%x\n",
"path1 0x%x, path2 0x%x, pathmap 0x%x\n",
path1, path2, pathmap); path1, path2, pathmap);
} }
...@@ -1221,7 +1214,7 @@ void rtl92s_phy_chk_fwcmd_iodone(struct ieee80211_hw *hw) ...@@ -1221,7 +1214,7 @@ void rtl92s_phy_chk_fwcmd_iodone(struct ieee80211_hw *hw)
} while (--pollingcnt); } while (--pollingcnt);
if (pollingcnt == 0) if (pollingcnt == 0)
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Set FW Cmd fail!!\n"); pr_err("Set FW Cmd fail!!\n");
} }
......
...@@ -523,8 +523,7 @@ void rtl92s_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth) ...@@ -523,8 +523,7 @@ void rtl92s_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth)
rtlphy->rfreg_chnlval[0]); rtlphy->rfreg_chnlval[0]);
break; break;
default: default:
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("unknown bandwidth: %#X\n", bandwidth);
"unknown bandwidth: %#X\n", bandwidth);
break; break;
} }
} }
...@@ -96,8 +96,7 @@ static void rtl92se_fw_cb(const struct firmware *firmware, void *context) ...@@ -96,8 +96,7 @@ static void rtl92se_fw_cb(const struct firmware *firmware, void *context)
return; return;
} }
if (firmware->size > rtlpriv->max_fw_size) { if (firmware->size > rtlpriv->max_fw_size) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Firmware is too big!\n");
"Firmware is too big!\n");
rtlpriv->max_fw_size = 0; rtlpriv->max_fw_size = 0;
release_firmware(firmware); release_firmware(firmware);
return; return;
...@@ -218,8 +217,7 @@ static int rtl92s_init_sw_vars(struct ieee80211_hw *hw) ...@@ -218,8 +217,7 @@ static int rtl92s_init_sw_vars(struct ieee80211_hw *hw)
rtlpriv->io.dev, GFP_KERNEL, hw, rtlpriv->io.dev, GFP_KERNEL, hw,
rtl92se_fw_cb); rtl92se_fw_cb);
if (err) { if (err) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, pr_err("Failed to request firmware!\n");
"Failed to request firmware!\n");
return 1; return 1;
} }
...@@ -299,7 +297,7 @@ static struct rtl_mod_params rtl92se_mod_params = { ...@@ -299,7 +297,7 @@ static struct rtl_mod_params rtl92se_mod_params = {
.inactiveps = true, .inactiveps = true,
.swctrl_lps = true, .swctrl_lps = true,
.fwctrl_lps = false, .fwctrl_lps = false,
.debug = DBG_EMERG, .debug = 0,
}; };
/* Because memory R/W bursting will cause system hang/crash /* Because memory R/W bursting will cause system hang/crash
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment