]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iwlwifi: pcie: Fix CSR_RESET operation access type
authorEran Harary <eran.harary@intel.com>
Wed, 11 Dec 2013 06:13:50 +0000 (08:13 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 31 Dec 2013 17:03:50 +0000 (19:03 +0200)
The access to the CSR_RESET reg should be done as a complete
DWORD and not by setting a bit. This is the right way to reset
the device.

Signed-off-by: Eran Harary <eran.harary@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c

index bc584efcebab4f5d7ae17ab043e7ea7a2d956b0f..2cb6332d38b471199dc4dcfe31b6b516e16f863d 100644 (file)
@@ -779,7 +779,7 @@ static int iwl_trans_pcie_start_hw(struct iwl_trans *trans)
        }
 
        /* Reset the entire device */
-       iwl_set_bit(trans, CSR_RESET, CSR_RESET_REG_FLAG_SW_RESET);
+       iwl_write32(trans, CSR_RESET, CSR_RESET_REG_FLAG_SW_RESET);
 
        usleep_range(10, 15);