iwlwifi: remove unneeded locks from apm_stop() and stop_master()
authorBen Cahill <ben.m.cahill@intel.com>
Fri, 30 Oct 2009 21:36:05 +0000 (14:36 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Nov 2009 20:39:44 +0000 (15:39 -0500)
commit5220af0c3b44f5d6e32661e5bb49154c514dbf4f
tree168268947b213c47e684719cf97c67ad02ce65c4
parent5ebeb5a676c864acf59caa166b3cc0a13b7cff93
iwlwifi: remove unneeded locks from apm_stop() and stop_master()

Since priv->reg_lock was added to keep multi-access register manipulation
atomic, priv->lock protection is no longer needed.  Remove this from
iwl_apm_stop_master() and iwl_apm_stop().

Add warning of timeout when polling for busmaster disablement confirmation,
and some comments.

NOTE:  This is needed to enable use of apm_ops.stop() within iwl_eeprom_init();
priv->lock does not get initialized until after this flow.  See patch
"remove power-wasting calls to apm_ops.init()"

Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c