]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: device specific sleep cookie handling for PCIe
authorAvinash Patil <patila@marvell.com>
Tue, 12 Feb 2013 22:38:32 +0000 (14:38 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 14 Feb 2013 19:24:07 +0000 (14:24 -0500)
commit7aabf22da01da5612ef4eea25020859824758622
tree7cde8248f4213febf0b16e2d637becbe84f1935f
parentee64b07b5f98f8829b2ba77ac3e2557707a7d0c2
mwifiex: device specific sleep cookie handling for PCIe

This patch adds support for handling of PCIe sleep cookie depending
upon device properties. Some PCIe devices need sleep cookie probing
before accessing HW while some others don't. A new sleep_cookie
variable is defined as part of mwifiex_pcie_card_reg strcture and
set/reset as per device capability.

Sleep cookie is allocated/accessed/freed only when flag sleep_cookie
for this particular device is enabled.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/pcie.h