|
@@ -145,10 +145,8 @@ static void _rtl92c_write_fw(struct ieee80211_hw *hw,
|
|
|
pageNums = size / FW_8192C_PAGE_SIZE;
|
|
|
remainsize = size % FW_8192C_PAGE_SIZE;
|
|
|
|
|
|
- if (pageNums > 4) {
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "Page numbers should not greater then 4\n");
|
|
|
- }
|
|
|
+ if (pageNums > 4)
|
|
|
+ pr_err("Page numbers should not greater then 4\n");
|
|
|
|
|
|
for (page = 0; page < pageNums; page++) {
|
|
|
offset = page * FW_8192C_PAGE_SIZE;
|
|
@@ -180,15 +178,10 @@ static int _rtl92c_fw_free_to_go(struct ieee80211_hw *hw)
|
|
|
(!(value32 & FWDL_ChkSum_rpt)));
|
|
|
|
|
|
if (counter >= FW_8192C_POLLING_TIMEOUT_COUNT) {
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "chksum report faill ! REG_MCUFWDL:0x%08x .\n",
|
|
|
- value32);
|
|
|
+ pr_err("chksum report fail! REG_MCUFWDL:0x%08x .\n",
|
|
|
+ value32);
|
|
|
goto exit;
|
|
|
}
|
|
|
-
|
|
|
- RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE,
|
|
|
- "Checksum report OK ! REG_MCUFWDL:0x%08x .\n", value32);
|
|
|
-
|
|
|
value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL);
|
|
|
value32 |= MCUFWDL_RDY;
|
|
|
value32 &= ~WINTINI_RDY;
|
|
@@ -198,20 +191,15 @@ static int _rtl92c_fw_free_to_go(struct ieee80211_hw *hw)
|
|
|
|
|
|
do {
|
|
|
value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL);
|
|
|
- if (value32 & WINTINI_RDY) {
|
|
|
- RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE,
|
|
|
- "Polling FW ready success!! REG_MCUFWDL:0x%08x .\n",
|
|
|
- value32);
|
|
|
- err = 0;
|
|
|
- goto exit;
|
|
|
- }
|
|
|
+ if (value32 & WINTINI_RDY)
|
|
|
+ return 0;
|
|
|
|
|
|
mdelay(FW_8192C_POLLING_DELAY);
|
|
|
|
|
|
} while (counter++ < FW_8192C_POLLING_TIMEOUT_COUNT);
|
|
|
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "Polling FW ready fail!! REG_MCUFWDL:0x%08x .\n", value32);
|
|
|
+ pr_err("Polling FW ready fail! REG_MCUFWDL:0x%08x.\n",
|
|
|
+ value32);
|
|
|
|
|
|
exit:
|
|
|
return err;
|
|
@@ -251,8 +239,7 @@ int rtl92c_download_fw(struct ieee80211_hw *hw)
|
|
|
|
|
|
err = _rtl92c_fw_free_to_go(hw);
|
|
|
if (err) {
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "Firmware is not ready to run!\n");
|
|
|
+ pr_err("Firmware is not ready to run!\n");
|
|
|
} else {
|
|
|
RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE,
|
|
|
"Firmware is ready to run!\n");
|
|
@@ -327,8 +314,7 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
|
|
|
while (!bwrite_sucess) {
|
|
|
wait_writeh2c_limmit--;
|
|
|
if (wait_writeh2c_limmit == 0) {
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "Write H2C fail because no trigger for FW INT!\n");
|
|
|
+ pr_err("Write H2C fail because no trigger for FW INT!\n");
|
|
|
break;
|
|
|
}
|
|
|
|