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)
commit3e66849865edca1d04c9c6227b9153e9bdbdaec0
treeb35d2fb3a8dc62e22e38e5832c4e652927652fcd
parent98e71f44c51d0ade36896dc34115c108912d909d
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