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)
commit52301a815e81cdcbcf971ba28df0376dc7f3961c
tree7cde8248f4213febf0b16e2d637becbe84f1935f
parent06e7cda3ce30dadc3454539127b4cfc3888c349e
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
This page took 0.025654 seconds and 5 git commands to generate.