iwl3945: update iwl3945_apm_init()
authorBen Cahill <ben.m.cahill@intel.com>
Fri, 9 Oct 2009 20:20:19 +0000 (13:20 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Oct 2009 20:47:56 +0000 (16:47 -0400)
commitf33269b8968d1c64772a9221e2c9c42d07a9b5ae
tree896734796ef4c48be027740fdc58811e1408811b
parent40b93ad6e97a1d412c4b86f4717fee9b4bc830e1
iwl3945: update iwl3945_apm_init()

Update iwl3945_apm_init() to set up device registers in sequence most recently
recommended by factory.

Add resets for APMG interrupts and radio chip, formerly done only in
iwl3945_apm_reset(); moving them here assures that apm_init() will do
a complete job of preparing hardware not only after platform boot,
but also after apm_stop() has executed (due to rfkill, ifconfig down,
driver unload, etc.).  This is in preparation to completely remove apm_reset().

Add some comments.

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-3945.c