]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: correctly set the NMI register
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 7 Jan 2015 14:44:06 +0000 (16:44 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 22 Jan 2015 15:54:05 +0000 (17:54 +0200)
commit7a72e2ff96d7ade69f8c13bc3068c96d5af8d9f5
tree4957f5cdf97766c28137440b5aa1271898c2fa69
parentfad84bd02ce19519af87d290f71b92b0747ffec5
iwlwifi: correctly set the NMI register

When we want to trigger an NMI in the device, we need to set
bit 7 and not bit 0. However, older firmwares don't register
to the interrupt issued by bit 7. Use bit 7 first so that
the correct interrupt will be issued hoping that the firmware
will react. To be on the safe side, set bit 0 in case the
firmware didn't register to the proper interrupt.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-io.c
drivers/net/wireless/iwlwifi/iwl-prph.h