Currently, hardware recovery procedure supports multi wiphy model. However, to support single wiphy model, we need to refactor the hardware recovery procedure. This patchset allows the logic to work both multi wiphy models and future single wiphy models. v2: - Rebased to ToT - Renamed the lock name as per the kalle comments Karthikeyan Periyasamy (3): wifi: ath12k: Refactor the hardware recovery procedure wifi: ath12k: Refactor the hardware state wifi: ath12k: Add lock to protect the hardware state drivers/net/wireless/ath/ath12k/core.c | 98 ++++++++++++++------------ drivers/net/wireless/ath/ath12k/core.h | 28 +++++--- drivers/net/wireless/ath/ath12k/mac.c | 95 +++++++++++++++++-------- drivers/net/wireless/ath/ath12k/reg.c | 19 ++--- 4 files changed, 149 insertions(+), 91 deletions(-) base-commit: 1b61047b44218a00c7a7836eff4f8e037d5634d8 -- 2.34.1