|
@@ -452,8 +452,7 @@ static int _rtl92cu_init_power_on(struct ieee80211_hw *hw)
|
|
|
break;
|
|
|
}
|
|
|
if (pollingCount++ > 100) {
|
|
|
- RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG,
|
|
|
- "Failed to polling REG_APS_FSMCO[PFM_ALDN] done!\n");
|
|
|
+ pr_err("Failed to polling REG_APS_FSMCO[PFM_ALDN] done!\n");
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
} while (true);
|
|
@@ -486,8 +485,7 @@ static int _rtl92cu_init_power_on(struct ieee80211_hw *hw)
|
|
|
break;
|
|
|
}
|
|
|
if (pollingCount++ > 1000) {
|
|
|
- RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG,
|
|
|
- "Failed to polling REG_APS_FSMCO[APFM_ONMAC] done!\n");
|
|
|
+ pr_err("Failed to polling REG_APS_FSMCO[APFM_ONMAC] done!\n");
|
|
|
return -ENODEV;
|
|
|
}
|
|
|
} while (true);
|
|
@@ -687,7 +685,6 @@ static void _rtl92cu_init_chipN_three_out_ep_priority(struct ieee80211_hw *hw,
|
|
|
u8 queue_sel)
|
|
|
{
|
|
|
u16 beQ, bkQ, viQ, voQ, mgtQ, hiQ;
|
|
|
- struct rtl_priv *rtlpriv = rtl_priv(hw);
|
|
|
|
|
|
if (!wmm_enable) { /* typical setting */
|
|
|
beQ = QUEUE_LOW;
|
|
@@ -705,8 +702,7 @@ static void _rtl92cu_init_chipN_three_out_ep_priority(struct ieee80211_hw *hw,
|
|
|
hiQ = QUEUE_HIGH;
|
|
|
}
|
|
|
_rtl92c_init_chipN_reg_priority(hw, beQ, bkQ, viQ, voQ, mgtQ, hiQ);
|
|
|
- RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Tx queue select :0x%02x..\n",
|
|
|
- queue_sel);
|
|
|
+ pr_info("Tx queue select :0x%02x..\n", queue_sel);
|
|
|
}
|
|
|
|
|
|
static void _rtl92cu_init_chipN_queue_priority(struct ieee80211_hw *hw,
|
|
@@ -765,8 +761,7 @@ static void _rtl92cu_init_chipT_queue_priority(struct ieee80211_hw *hw,
|
|
|
break;
|
|
|
}
|
|
|
rtl_write_byte(rtlpriv, (REG_TRXDMA_CTRL+1), hq_sele);
|
|
|
- RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Tx queue select :0x%02x..\n",
|
|
|
- hq_sele);
|
|
|
+ pr_info("Tx queue select :0x%02x..\n", hq_sele);
|
|
|
}
|
|
|
|
|
|
static void _rtl92cu_init_queue_priority(struct ieee80211_hw *hw,
|
|
@@ -848,8 +843,7 @@ static int _rtl92cu_init_mac(struct ieee80211_hw *hw)
|
|
|
err = _rtl92cu_init_power_on(hw);
|
|
|
|
|
|
if (err) {
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "Failed to init power on!\n");
|
|
|
+ pr_err("Failed to init power on!\n");
|
|
|
return err;
|
|
|
}
|
|
|
if (!wmm_enable) {
|
|
@@ -860,8 +854,7 @@ static int _rtl92cu_init_mac(struct ieee80211_hw *hw)
|
|
|
: WMM_CHIP_A_TX_PAGE_BOUNDARY;
|
|
|
}
|
|
|
if (false == rtl92c_init_llt_table(hw, boundary)) {
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "Failed to init LLT Table!\n");
|
|
|
+ pr_err("Failed to init LLT Table!\n");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
_rtl92cu_init_queue_reserved_page(hw, wmm_enable, out_ep_nums,
|
|
@@ -986,7 +979,7 @@ int rtl92cu_hw_init(struct ieee80211_hw *hw)
|
|
|
rtlhal->hw_type = HARDWARE_TYPE_RTL8192CU;
|
|
|
err = _rtl92cu_init_mac(hw);
|
|
|
if (err) {
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "init mac failed!\n");
|
|
|
+ pr_err("init mac failed!\n");
|
|
|
goto exit;
|
|
|
}
|
|
|
err = rtl92c_download_fw(hw);
|
|
@@ -1099,8 +1092,7 @@ static void _ResetDigitalProcedure1(struct ieee80211_hw *hw, bool bWithoutHWSM)
|
|
|
udelay(50);
|
|
|
}
|
|
|
if (retry_cnts >= 100) {
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "#####=> 8051 reset failed!.........................\n");
|
|
|
+ pr_err("8051 reset failed!.........................\n");
|
|
|
/* if 8051 reset fail, reset MAC. */
|
|
|
rtl_write_byte(rtlpriv,
|
|
|
REG_SYS_FUNC_EN + 1,
|
|
@@ -1340,8 +1332,7 @@ static int _rtl92cu_set_media_status(struct ieee80211_hw *hw,
|
|
|
"Set Network type to AP!\n");
|
|
|
break;
|
|
|
default:
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "Network type %d not supported!\n", type);
|
|
|
+ pr_err("Network type %d not supported!\n", type);
|
|
|
goto error_out;
|
|
|
}
|
|
|
rtl_write_byte(rtlpriv, MSR, bt_msr);
|
|
@@ -1555,8 +1546,7 @@ void rtl92cu_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
|
|
case HAL_DEF_WOWLAN:
|
|
|
break;
|
|
|
default:
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "switch case %#x not processed\n", variable);
|
|
|
+ pr_err("switch case %#x not processed\n", variable);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -1926,8 +1916,7 @@ void rtl92cu_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
|
|
break;
|
|
|
}
|
|
|
default:
|
|
|
- RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
|
|
|
- "switch case %#x not processed\n", variable);
|
|
|
+ pr_err("switch case %#x not processed\n", variable);
|
|
|
break;
|
|
|
}
|
|
|
}
|