ath11k: mhi: add error handling for suspend and resume
authorKalle Valo <quic_kvalo@quicinc.com>
Tue, 5 Apr 2022 08:26:39 +0000 (11:26 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 6 Apr 2022 08:31:55 +0000 (11:31 +0300)
commit3e80fcbca37221cd1e5a33eea4b0f215f66a7a00
tree057057ca3df8b05e3a8f7fcf23186a41114d7ff4
parent121210ec935c47b076709974d95360f5e9c9b869
ath11k: mhi: add error handling for suspend and resume

While reviewing the mhi.c I noticed we were just ignoring the errors coming
from MHI subsystem during suspend and resume. Add proper checks and warning
messages. Also pass the error value to callers.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2

Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220401173042.17467-3-kvalo@kernel.org
drivers/net/wireless/ath/ath11k/mhi.c
drivers/net/wireless/ath/ath11k/mhi.h
drivers/net/wireless/ath/ath11k/pci.c