Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k: Remove unused BMISS processing

The various variables tracking bmiss interrupts
are not really used anywhere except in a debug
message. Remove them since they have no functional
purpose.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Sujith Manoharan and committed by
Kalle Valo
c4d0975b 249943a2

-29
-2
drivers/net/wireless/ath/ath9k/ath9k.h
··· 1043 1043 s16 tx99_power; 1044 1044 1045 1045 #ifdef CONFIG_ATH9K_WOW 1046 - atomic_t wow_got_bmiss_intr; 1047 - atomic_t wow_sleep_proc_intr; /* in the middle of WoW sleep ? */ 1048 1046 u32 wow_intr_before_sleep; 1049 1047 #endif 1050 1048 };
-9
drivers/net/wireless/ath/ath9k/main.c
··· 556 556 (status & ATH9K_INT_BB_WATCHDOG)) 557 557 goto chip_reset; 558 558 559 - #ifdef CONFIG_ATH9K_WOW 560 - if (status & ATH9K_INT_BMISS) { 561 - if (atomic_read(&sc->wow_sleep_proc_intr) == 0) { 562 - atomic_inc(&sc->wow_got_bmiss_intr); 563 - atomic_dec(&sc->wow_sleep_proc_intr); 564 - } 565 - } 566 - #endif 567 - 568 559 if (status & ATH9K_INT_SWBA) 569 560 tasklet_schedule(&sc->bcon_tasklet); 570 561
-18
drivers/net/wireless/ath/ath9k/wow.c
··· 269 269 270 270 ath9k_ps_restore(sc); 271 271 ath_dbg(common, WOW, "Suspend with WoW triggers: 0x%x\n", triggers); 272 - atomic_inc(&sc->wow_sleep_proc_intr); 273 272 274 273 set_bit(ATH_OP_WOW_ENABLED, &common->op_flags); 275 274 fail_wow: ··· 297 298 spin_unlock_bh(&sc->sc_pcu_lock); 298 299 299 300 wow_status = ath9k_hw_wow_wakeup(ah); 300 - 301 - if (atomic_read(&sc->wow_got_bmiss_intr) == 0) { 302 - /* 303 - * some devices may not pick beacon miss 304 - * as the reason they woke up so we add 305 - * that here for that shortcoming. 306 - */ 307 - wow_status |= AH_WOW_BEACON_MISS; 308 - atomic_dec(&sc->wow_got_bmiss_intr); 309 - ath_dbg(common, ANY, "Beacon miss interrupt picked up during WoW sleep\n"); 310 - } 311 - 312 - atomic_dec(&sc->wow_sleep_proc_intr); 313 301 314 302 if (wow_status) { 315 303 ath_dbg(common, ANY, "Waking up due to WoW triggers %s with WoW status = %x\n", ··· 333 347 334 348 if (sc->driver_data & ATH9K_PCI_WOW) { 335 349 hw->wiphy->wowlan = &ath9k_wowlan_support; 336 - 337 - atomic_set(&sc->wow_sleep_proc_intr, -1); 338 - atomic_set(&sc->wow_got_bmiss_intr, -1); 339 - 340 350 device_init_wakeup(sc->dev, 1); 341 351 } 342 352 }