]> 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)
commit48d647be2746f64dee0f0aff632bd86cb3313dd6
tree7cde8248f4213febf0b16e2d637becbe84f1935f
parent9f865efdd9372b86e0093e5c2ec0e491fb83778c
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