OSDN Git Service

ath10k: Register shutdown handler
authorRakesh Pillai <pillair@codeaurora.org>
Fri, 26 Jun 2020 17:53:01 +0000 (23:23 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 18 Aug 2020 09:48:35 +0000 (12:48 +0300)
commitcaf275463d37e1359d1767d774052cbca60a4854
tree9c3de41ddea01b873dc749f8ea9140dd83cddca0
parentf3c603d412b3434dec15821f13fa4a1d0dd1cc84
ath10k: Register shutdown handler

As a part of device shutdown the smmu driver will be
stopped and henceforth any IOVA address translation
will not be done. The wlan driver, being one of the
smmu driver consumer, should stop all the dma related
activity as a part of shutdown, and thereby ensuring
that no dma activity is done once the smmu driver
shuts down.

During the device shutdown, the smmu calls shutdown
for all its consumers in order to indicate them to
stop all their dma activities.

Register the shutdown handler to stop the wlan
driver and avoid any dma operations.

Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1

Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1593193981-30161-1-git-send-email-pillair@codeaurora.org
drivers/net/wireless/ath/ath10k/snoc.c