aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 4ea75666e0a9..40905d2dc231 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1255,13 +1255,6 @@ static void iwl_print_rx_config_cmd(struct iwl_priv *priv)
1255} 1255}
1256#endif 1256#endif
1257 1257
1258static void iwl_enable_interrupts(struct iwl_priv *priv)
1259{
1260 IWL_DEBUG_ISR("Enabling interrupts\n");
1261 set_bit(STATUS_INT_ENABLED, &priv->status);
1262 iwl_write32(priv, CSR_INT_MASK, CSR_INI_SET_MASK);
1263}
1264
1265/* call this function to flush any scheduled tasklet */ 1258/* call this function to flush any scheduled tasklet */
1266static inline void iwl_synchronize_irq(struct iwl_priv *priv) 1259static inline void iwl_synchronize_irq(struct iwl_priv *priv)
1267{ 1260{
@@ -1270,21 +1263,6 @@ static inline void iwl_synchronize_irq(struct iwl_priv *priv)
1270 tasklet_kill(&priv->irq_tasklet); 1263 tasklet_kill(&priv->irq_tasklet);
1271} 1264}
1272 1265
1273static inline void iwl_disable_interrupts(struct iwl_priv *priv)
1274{
1275 clear_bit(STATUS_INT_ENABLED, &priv->status);
1276
1277 /* disable interrupts from uCode/NIC to host */
1278 iwl_write32(priv, CSR_INT_MASK, 0x00000000);
1279
1280 /* acknowledge/clear/reset any interrupts still pending
1281 * from uCode or flow handler (Rx/Tx DMA) */
1282 iwl_write32(priv, CSR_INT, 0xffffffff);
1283 iwl_write32(priv, CSR_FH_INT_STATUS, 0xffffffff);
1284 IWL_DEBUG_ISR("Disabled interrupts\n");
1285}
1286
1287
1288/** 1266/**
1289 * iwl_irq_handle_error - called for HW or SW error interrupt from card 1267 * iwl_irq_handle_error - called for HW or SW error interrupt from card
1290 */ 1268 */