wifi: iwlwifi: mvm: Don't use deprecated register
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 5 Dec 2022 08:35:44 +0000 (10:35 +0200)
committerGregory Greenman <gregory.greenman@intel.com>
Wed, 7 Dec 2022 15:36:25 +0000 (17:36 +0200)
commitb201944af11f7b2c860bef5cb562eb7163427724
tree4d7fdfc49a884fe9eb943aca8188a9b2af46a69f
parent3a27a1a158bd1811db7f9b82a72303414fa270e1
wifi: iwlwifi: mvm: Don't use deprecated register

The CSR_HW_IF_CONFIG_REG register is no longer in use from
IWL_DEVICE_FAMILY_AX210 and on.
This register uses now for CSR_CTXT_INFO_BOOT_CTRL
which has a different meaning and a different format.
Currently we're writing to the register according to
CSR_HW_IF_CONFIG_REGs format, regardless to the device family.
This causes to miss-interpretation of the register value, as it is
parsed according to CSR_CTXT_INFO_BOOT_CTRLs format for devices
families >= IWL_DEVICE_FAMILY_AX210.
Fix this by writing to the register according to the old format
only for the relevant hardware.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20221205102808.8e91eb10dc7d.I3882a2452785ef8b455d99af235e4477917bf46d@changeid
drivers/net/wireless/intel/iwlwifi/mvm/ops.c