wifi: iwlwifi: yoyo: skip dump correctly on hw error
authorDaniel Gabay <daniel.gabay@intel.com>
Thu, 13 Apr 2023 18:40:33 +0000 (21:40 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 11:14:51 +0000 (13:14 +0200)
commit11195ab0d6f3202cf7af1a4c69570f59c377d8ad
treecd105f1ab22ead2b99b60d8f45211a2c24668fc1
parentb655b9a9f8467684cfa8906713d33b71ea8c8f54
wifi: iwlwifi: yoyo: skip dump correctly on hw error

When NIC is in a bad state, reading data will return 28 bits as
0xa5a5a5a and the lowest 4 bits are not fixed value.

Mask these bits in a few places to skip the dump correctly.

Fixes: 89639e06d0f3 ("iwlwifi: yoyo: support for new DBGI_SRAM region")
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230413213309.df6c0663179d.I36d8487b2419c6fefa65e5514855d94327c3b1eb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c