ath11k: Advertise PLATFORM_CAP_PCIE_GLOBAL_RESET in qmi msg
Quoted 8 lines · Kalle Valo
Quoted 2 lines · Baochen Qiang
Inform firmware that host is capable of triggering a global reset. This is requested by firmware team.
Why?
https://wireless.wiki.kernel.org/en/users/drivers/ath10k/submittingpatches#answer_to_why
In some scenarios like rmmod/insmod, HW target needs to be completely reset. On ARM platforms we can rely on WL_EN pin and other power regulators to do this. However on x86 or some third party platforms, this has to be done by ath11k host by writing HW register PCIE_SOC_GLOBAL_RESET. But the problem is that some HW registers can not be cleared/restored. With this flag PLATFORM_CAP_PCIE_GLOBAL_RESET in QMI host_cap message, firmware can do some platform specific operations to fix this issue.