wifi: iwlwifi: pcie: clear FW debug memory on init
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Jun 2023 12:57:25 +0000 (15:57 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2023 10:32:21 +0000 (12:32 +0200)
commit583c58e3b1fa3718c52a5cbba2176cc30688c53c
tree841b9d604717249020132408130643f1ac4450fc
parentc2a2f505e0bcb45052131d173504887041e1faae
wifi: iwlwifi: pcie: clear FW debug memory on init

When we restart the firmware, we shouldn't keep old debug data
around. Since the "allocate" function might not reallocate the
memory block (it's only freed when we unbind from the device),
clear the memory to have a clean slate for debug data.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230613155501.73c32255a132.Ibd7101dcd285b01ee879fddfbf52c30d49ced3c0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c