wifi: ath11k: Register shutdown handler for WCN6750
authorManikanta Pubbisetty <quic_mpubbise@quicinc.com>
Wed, 31 Aug 2022 06:04:19 +0000 (09:04 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 1 Sep 2022 16:09:33 +0000 (19:09 +0300)
commitac41c2b642b136a1e633379fcb87a9db0ee07f5b
tree18be9d9ece58b029b4f368cc8a0c50901e38c654
parent8d40a13bc35da6c68f3beb44d7d4b21ea247366d
wifi: ath11k: Register shutdown handler for WCN6750

When the system shuts down, SMMU driver will be stopped and
will not assist in IOVA translations. SMMU driver expects all
of its consumers to shutdown before shutting down itself.
WCN6750 being one of the consumer device should not perform any
DMA operations after the SMMU has shutdown which will otherwise
result in SMMU faults.

SMMU driver will call the shutdown() callback of all its
consumer devices and the consumers shall stop further DMA
activity after the invocation of their respective shutdown()
callbacks.

Register the shutdown() callback to the platform core for WCN6750.
Change will not impact other AHB ath11k devices.

Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1

Signed-off-by: Manikanta Pubbisetty <quic_mpubbise@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220720134710.15523-1-quic_mpubbise@quicinc.com
drivers/net/wireless/ath/ath11k/ahb.c
drivers/net/wireless/ath/ath11k/core.c