diff options
author | Don Fry <donald.h.fry@intel.com> | 2012-03-07 12:52:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-08 13:59:55 -0500 |
commit | 83626404a70da74c67f32f119e53c0ba032ba2d8 (patch) | |
tree | fdd6cff4fdffbe099d24a0c0dc8c6d07f6aca900 /drivers/net/wireless/iwlwifi/iwl-trans-pcie.c | |
parent | 9bdfbfadc4f0b3a756b54e7ec7cfaf92c22ce258 (diff) |
iwlwifi: more status bit factoring
Continue splitting the status bits between transport and op_mode.
All but a few are separated.
Signed-off-by: Don Fry <donald.h.fry@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans-pcie.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-pcie.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c index e78098e79ee1..3b8a5fb771f6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c | |||
@@ -684,6 +684,7 @@ static void iwl_apm_config(struct iwl_trans *trans) | |||
684 | */ | 684 | */ |
685 | static int iwl_apm_init(struct iwl_trans *trans) | 685 | static int iwl_apm_init(struct iwl_trans *trans) |
686 | { | 686 | { |
687 | struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); | ||
687 | int ret = 0; | 688 | int ret = 0; |
688 | IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); | 689 | IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); |
689 | 690 | ||
@@ -753,7 +754,7 @@ static int iwl_apm_init(struct iwl_trans *trans) | |||
753 | iwl_set_bits_prph(trans, APMG_PCIDEV_STT_REG, | 754 | iwl_set_bits_prph(trans, APMG_PCIDEV_STT_REG, |
754 | APMG_PCIDEV_STT_VAL_L1_ACT_DIS); | 755 | APMG_PCIDEV_STT_VAL_L1_ACT_DIS); |
755 | 756 | ||
756 | set_bit(STATUS_DEVICE_ENABLED, &trans->shrd->status); | 757 | set_bit(STATUS_DEVICE_ENABLED, &trans_pcie->status); |
757 | 758 | ||
758 | out: | 759 | out: |
759 | return ret; | 760 | return ret; |
@@ -779,9 +780,10 @@ static int iwl_apm_stop_master(struct iwl_trans *trans) | |||
779 | 780 | ||
780 | static void iwl_apm_stop(struct iwl_trans *trans) | 781 | static void iwl_apm_stop(struct iwl_trans *trans) |
781 | { | 782 | { |
783 | struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); | ||
782 | IWL_DEBUG_INFO(trans, "Stop card, put in low power state\n"); | 784 | IWL_DEBUG_INFO(trans, "Stop card, put in low power state\n"); |
783 | 785 | ||
784 | clear_bit(STATUS_DEVICE_ENABLED, &trans->shrd->status); | 786 | clear_bit(STATUS_DEVICE_ENABLED, &trans_pcie->status); |
785 | 787 | ||
786 | /* Stop device's DMA activity */ | 788 | /* Stop device's DMA activity */ |
787 | iwl_apm_stop_master(trans); | 789 | iwl_apm_stop_master(trans); |
@@ -1265,7 +1267,7 @@ static void iwl_trans_pcie_stop_device(struct iwl_trans *trans) | |||
1265 | * restart. So don't process again if the device is | 1267 | * restart. So don't process again if the device is |
1266 | * already dead. | 1268 | * already dead. |
1267 | */ | 1269 | */ |
1268 | if (test_bit(STATUS_DEVICE_ENABLED, &trans->shrd->status)) { | 1270 | if (test_bit(STATUS_DEVICE_ENABLED, &trans_pcie->status)) { |
1269 | iwl_trans_tx_stop(trans); | 1271 | iwl_trans_tx_stop(trans); |
1270 | #ifndef CONFIG_IWLWIFI_IDI | 1272 | #ifndef CONFIG_IWLWIFI_IDI |
1271 | iwl_trans_rx_stop(trans); | 1273 | iwl_trans_rx_stop(trans); |