linux/drivers/net/wireless/ath/ath11k
Seevalamuthu Mariappan 081e2d6476 ath11k: add hw_param for wakeup_mhi
Wakeup mhi is needed before pci_read/write only for QCA6390 and WCN6855. Since
wakeup & release mhi is enabled for all hardwares, below mhi assert is seen in
QCN9074 when doing 'rmmod ath11k_pci':

	Kernel panic - not syncing: dev_wake != 0
	CPU: 2 PID: 13535 Comm: procd Not tainted 4.4.60 #1
	Hardware name: Generic DT based system
	[<80316dac>] (unwind_backtrace) from [<80313700>] (show_stack+0x10/0x14)
	[<80313700>] (show_stack) from [<805135dc>] (dump_stack+0x7c/0x9c)
	[<805135dc>] (dump_stack) from [<8032136c>] (panic+0x84/0x1f8)
	[<8032136c>] (panic) from [<80549b24>] (mhi_pm_disable_transition+0x3b8/0x5b8)
	[<80549b24>] (mhi_pm_disable_transition) from [<80549ddc>] (mhi_power_down+0xb8/0x100)
	[<80549ddc>] (mhi_power_down) from [<7f5242b0>] (ath11k_mhi_op_status_cb+0x284/0x3ac [ath11k_pci])
	[E][__mhi_device_get_sync] Did not enter M0 state, cur_state:RESET pm_state:SHUTDOWN Process
	[E][__mhi_device_get_sync] Did not enter M0 state, cur_state:RESET pm_state:SHUTDOWN Process
	[E][__mhi_device_get_sync] Did not enter M0 state, cur_state:RESET pm_state:SHUTDOWN Process
	[<7f5242b0>] (ath11k_mhi_op_status_cb [ath11k_pci]) from [<7f524878>] (ath11k_mhi_stop+0x10/0x20 [ath11k_pci])
	[<7f524878>] (ath11k_mhi_stop [ath11k_pci]) from [<7f525b94>] (ath11k_pci_power_down+0x54/0x90 [ath11k_pci])
	[<7f525b94>] (ath11k_pci_power_down [ath11k_pci]) from [<8056b2a8>] (pci_device_shutdown+0x30/0x44)
	[<8056b2a8>] (pci_device_shutdown) from [<805cfa0c>] (device_shutdown+0x124/0x174)
	[<805cfa0c>] (device_shutdown) from [<8033aaa4>] (kernel_restart+0xc/0x50)
	[<8033aaa4>] (kernel_restart) from [<8033ada8>] (SyS_reboot+0x178/0x1ec)
	[<8033ada8>] (SyS_reboot) from [<80301b80>] (ret_fast_syscall+0x0/0x34)

Hence, disable wakeup/release mhi using hw_param for other hardwares.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01060-QCAHKSWPL_SILICONZ-1

Fixes: a05bd85133 ("ath11k: read and write registers below unwindowed address")
Signed-off-by: Seevalamuthu Mariappan <quic_seevalam@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1636702019-26142-1-git-send-email-quic_seevalam@quicinc.com
2021-11-19 10:04:37 +02:00
..
ahb.c ath11k: Move qmi service_ins_id to hw_params 2021-02-17 11:32:10 +02:00
ahb.h ath11k: Remove rproc references from common core layer 2020-09-21 16:11:28 +03:00
ce.c ath11k: Disabling credit flow for WMI path 2021-11-17 09:28:04 +02:00
ce.h ath11k: Disabling credit flow for WMI path 2021-11-17 09:28:04 +02:00
core.c ath11k: add hw_param for wakeup_mhi 2021-11-19 10:04:37 +02:00
core.h ath11k: add support for BSS color change 2021-11-17 09:32:06 +02:00
dbring.c ath11k: use cache line aligned buffers for dbring 2021-11-17 09:28:29 +02:00
dbring.h ath11k: use cache line aligned buffers for dbring 2021-11-17 09:28:29 +02:00
debug.c ath11k: add trace log support 2021-11-17 09:29:34 +02:00
debug.h ath11k: add trace log support 2021-11-17 09:29:34 +02:00
debugfs_htt_stats.c ath11k: add HTT stats support for new stats 2021-09-28 16:53:15 +03:00
debugfs_htt_stats.h ath11k: add HTT stats support for new stats 2021-09-28 16:53:15 +03:00
debugfs_sta.c ath11k: add HTT stats support for new stats 2021-09-28 16:53:15 +03:00
debugfs_sta.h ath11k: debugfs: move some function declarations to correct header files 2020-09-22 10:41:49 +03:00
debugfs.c ath11k: fix the value of msecs_to_jiffies in ath11k_debugfs_fw_stats_request 2021-11-15 11:23:49 +02:00
debugfs.h ath11k: add HTT stats support for new stats 2021-09-28 16:53:15 +03:00
dp_rx.c ath11k: fix FCS_ERR flag in radio tap header 2021-11-15 11:24:51 +02:00
dp_rx.h ath11k: Clear the fragment cache during key install 2021-05-11 20:16:21 +02:00
dp_tx.c ath11k: avoid unnecessary lock contention in tx_completion path 2021-11-15 11:21:56 +02:00
dp_tx.h ath11k: fix 4addr multicast packet tx 2021-09-16 12:15:40 +03:00
dp.c ath11k: avoid while loop in ring selection of tx completion interrupt 2021-11-15 11:21:55 +02:00
dp.h ath11k: allocate dst ring descriptors from cacheable memory 2021-11-15 11:21:49 +02:00
hal_desc.h ath11k: Add support for RX decapsulation offload 2021-09-28 13:56:28 +03:00
hal_rx.c ath11k: change return buffer manager for QCA6390 2021-10-25 16:03:08 +03:00
hal_rx.h ath11k: add support to get peer id for WCN6855 2021-06-12 13:31:04 +03:00
hal_tx.c ath11k: add data path support for QCN9074 2021-02-17 11:32:51 +02:00
hal_tx.h ath11k: add hal support for QCN9074 2021-02-17 11:32:48 +02:00
hal.c ath11k: remove mod operator in dst ring processing 2021-11-15 11:21:54 +02:00
hal.h ath11k: allocate dst ring descriptors from cacheable memory 2021-11-15 11:21:49 +02:00
hif.h ath11k: add CE interrupt support for QCN9074 2021-02-17 11:32:58 +02:00
htc.c ath11k: Disabling credit flow for WMI path 2021-11-17 09:28:04 +02:00
htc.h ath11k: Disabling credit flow for WMI path 2021-11-17 09:28:04 +02:00
hw.c ath11k: Fix crash caused by uninitialized TX ring 2021-11-17 09:30:01 +02:00
hw.h ath11k: add hw_param for wakeup_mhi 2021-11-19 10:04:37 +02:00
Kconfig
mac.c ath11k: reset RSN/WPA present state for open BSS 2021-11-17 09:32:45 +02:00
mac.h ath11k: add support for BSS color change 2021-11-17 09:32:06 +02:00
Makefile ath11k: implement WoW enable and wakeup commands 2020-12-12 06:41:37 +02:00
mhi.c ath11k: set register access length for MHI driver 2021-08-05 14:28:47 +02:00
mhi.h ath11k: mhi: hook suspend and resume 2020-12-12 06:41:16 +02:00
pci.c ath11k: add hw_param for wakeup_mhi 2021-11-19 10:04:37 +02:00
pci.h ath11k: add hal support for QCN9074 2021-02-17 11:32:48 +02:00
peer.c ath11k: fix 4addr multicast packet tx 2021-09-16 12:15:40 +03:00
peer.h ath11k: fix fw crash due to peer get authorized before key install 2021-11-15 11:14:58 +02:00
qmi.c ath11k: Add missing qmi_txn_cancel() 2021-11-17 09:29:01 +02:00
qmi.h ath11k: add caldata download support from EEPROM 2021-09-28 13:49:48 +03:00
reg.c ath11k: Fix ETSI regd with weather radar overlap 2021-11-17 09:27:21 +02:00
reg.h ath11k: Avoid race during regd updates 2021-09-28 13:57:32 +03:00
rx_desc.h ath11k: add dp support for WCN6855 2021-06-12 13:31:02 +03:00
spectral.c ath11k: Fix the spectral minimum FFT bin count 2021-09-28 11:52:57 +03:00
spectral.h
testmode_i.h
testmode.c ath11k: remove repeated words in comments and warnings 2020-10-28 15:44:04 +02:00
testmode.h
thermal.c
thermal.h
trace.c ath11k: add trace log support 2021-11-17 09:29:34 +02:00
trace.h ath11k: add trace log support 2021-11-17 09:29:34 +02:00
wmi.c ath11k: clear the keys properly via DISABLE_KEY 2021-11-17 09:32:44 +02:00
wmi.h ath11k: add support for BSS color change 2021-11-17 09:32:06 +02:00
wow.c ath11k: implement WoW enable and wakeup commands 2020-12-12 06:41:37 +02:00
wow.h ath11k: implement WoW enable and wakeup commands 2020-12-12 06:41:37 +02:00