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

ath9k: Fix power save wrappers in debug ops

Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Rajkumar Manoharan and committed by
John W. Linville
79d2b157 099fb8ab

+8
+8
drivers/net/wireless/ath/ath9k/debug.c
··· 443 443 put_unaligned_le16(REG_READ_D(sc->sc_ah, AR_BSSMSKU) & 0xffff, addr + 4); 444 444 len += snprintf(buf + len, sizeof(buf) - len, 445 445 "addrmask: %pM\n", addr); 446 + ath9k_ps_wakeup(sc); 446 447 tmp = ath9k_hw_getrxfilter(sc->sc_ah); 448 + ath9k_ps_restore(sc); 447 449 len += snprintf(buf + len, sizeof(buf) - len, 448 450 "rfilt: 0x%x", tmp); 449 451 if (tmp & ATH9K_RX_FILTER_UCAST) ··· 727 725 break; 728 726 } 729 727 728 + ath9k_ps_wakeup(sc); 730 729 len += snprintf(buf + len, size - len, 731 730 "curbssid: %pM\n" 732 731 "OP-Mode: %s(%i)\n" ··· 737 734 REG_READ(ah, AR_BEACON_PERIOD)); 738 735 739 736 reg = REG_READ(ah, AR_TIMER_MODE); 737 + ath9k_ps_restore(sc); 740 738 len += snprintf(buf + len, size - len, "Timer-Mode-Register: 0x%x (", 741 739 reg); 742 740 if (reg & AR_TBTT_TIMER_EN) ··· 1054 1050 unsigned int len; 1055 1051 u32 regval; 1056 1052 1053 + ath9k_ps_wakeup(sc); 1057 1054 regval = REG_READ_D(ah, sc->debug.regidx); 1055 + ath9k_ps_restore(sc); 1058 1056 len = sprintf(buf, "0x%08x\n", regval); 1059 1057 return simple_read_from_buffer(user_buf, count, ppos, buf, len); 1060 1058 } ··· 1078 1072 if (strict_strtoul(buf, 0, &regval)) 1079 1073 return -EINVAL; 1080 1074 1075 + ath9k_ps_wakeup(sc); 1081 1076 REG_WRITE_D(ah, sc->debug.regidx, regval); 1077 + ath9k_ps_restore(sc); 1082 1078 return count; 1083 1079 } 1084 1080