]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: mwifiex_unmap_pci_memory() handling for sleep confirm
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 24 Jan 2017 13:35:44 +0000 (19:05 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 28 Jan 2017 07:10:03 +0000 (09:10 +0200)
commitf196ee16dc078d5b731df8009edadcb71861eddc
treeb35d2fb3a8dc62e22e38e5832c4e652927652fcd
parent99a044562e7a3b70101eff9d535eee178b83d76d
mwifiex: mwifiex_unmap_pci_memory() handling for sleep confirm

Sleep confirm is a special command for which "adapter->cur_cmd" pointer
is not set. When it's response is received, host writes SLEEP confirm done
to a register. Firmware will perform DMA for writing sleep cookie signature
on same buffer after this.

Let's not immediately call mwifiex_unmap_pci_memory() for this special
command. Unmapping will be done when firmware completes writing sleep
cookie signature.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c
drivers/net/wireless/marvell/mwifiex/pcie.h