|
@@ -986,7 +986,7 @@ static int iwl_pcie_load_given_ucode_8000(struct iwl_trans *trans,
|
|
&first_ucode_section);
|
|
&first_ucode_section);
|
|
}
|
|
}
|
|
|
|
|
|
-bool iwl_trans_check_hw_rf_kill(struct iwl_trans *trans)
|
|
|
|
|
|
+bool iwl_pcie_check_hw_rf_kill(struct iwl_trans *trans)
|
|
{
|
|
{
|
|
struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
|
|
struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
|
|
bool hw_rfkill = iwl_is_rfkill_set(trans);
|
|
bool hw_rfkill = iwl_is_rfkill_set(trans);
|
|
@@ -1252,7 +1252,7 @@ static int iwl_trans_pcie_start_fw(struct iwl_trans *trans,
|
|
mutex_lock(&trans_pcie->mutex);
|
|
mutex_lock(&trans_pcie->mutex);
|
|
|
|
|
|
/* If platform's RF_KILL switch is NOT set to KILL */
|
|
/* If platform's RF_KILL switch is NOT set to KILL */
|
|
- hw_rfkill = iwl_trans_check_hw_rf_kill(trans);
|
|
|
|
|
|
+ hw_rfkill = iwl_pcie_check_hw_rf_kill(trans);
|
|
if (hw_rfkill && !run_in_rfkill) {
|
|
if (hw_rfkill && !run_in_rfkill) {
|
|
ret = -ERFKILL;
|
|
ret = -ERFKILL;
|
|
goto out;
|
|
goto out;
|
|
@@ -1300,7 +1300,7 @@ static int iwl_trans_pcie_start_fw(struct iwl_trans *trans,
|
|
ret = iwl_pcie_load_given_ucode(trans, fw);
|
|
ret = iwl_pcie_load_given_ucode(trans, fw);
|
|
|
|
|
|
/* re-check RF-Kill state since we may have missed the interrupt */
|
|
/* re-check RF-Kill state since we may have missed the interrupt */
|
|
- hw_rfkill = iwl_trans_check_hw_rf_kill(trans);
|
|
|
|
|
|
+ hw_rfkill = iwl_pcie_check_hw_rf_kill(trans);
|
|
if (hw_rfkill && !run_in_rfkill)
|
|
if (hw_rfkill && !run_in_rfkill)
|
|
ret = -ERFKILL;
|
|
ret = -ERFKILL;
|
|
|
|
|
|
@@ -1663,7 +1663,7 @@ static int _iwl_trans_pcie_start_hw(struct iwl_trans *trans, bool low_power)
|
|
trans_pcie->is_down = false;
|
|
trans_pcie->is_down = false;
|
|
|
|
|
|
/* ...rfkill can call stop_device and set it false if needed */
|
|
/* ...rfkill can call stop_device and set it false if needed */
|
|
- iwl_trans_check_hw_rf_kill(trans);
|
|
|
|
|
|
+ iwl_pcie_check_hw_rf_kill(trans);
|
|
|
|
|
|
/* Make sure we sync here, because we'll need full access later */
|
|
/* Make sure we sync here, because we'll need full access later */
|
|
if (low_power)
|
|
if (low_power)
|