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
29 lines
825 B
C
29 lines
825 B
C
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
|
|
/*
|
|
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
|
*/
|
|
#ifndef _ATH11K_MHI_H
|
|
#define _ATH11K_MHI_H
|
|
|
|
#include "pci.h"
|
|
|
|
#define PCIE_TXVECDB 0x360
|
|
#define PCIE_TXVECSTATUS 0x368
|
|
#define PCIE_RXVECDB 0x394
|
|
#define PCIE_RXVECSTATUS 0x39C
|
|
|
|
#define MHISTATUS 0x48
|
|
#define MHICTRL 0x38
|
|
#define MHICTRL_RESET_MASK 0x2
|
|
|
|
int ath11k_mhi_start(struct ath11k_pci *ar_pci);
|
|
void ath11k_mhi_stop(struct ath11k_pci *ar_pci);
|
|
int ath11k_mhi_register(struct ath11k_pci *ar_pci);
|
|
void ath11k_mhi_unregister(struct ath11k_pci *ar_pci);
|
|
void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab);
|
|
void ath11k_mhi_clear_vector(struct ath11k_base *ab);
|
|
|
|
int ath11k_mhi_suspend(struct ath11k_pci *ar_pci);
|
|
int ath11k_mhi_resume(struct ath11k_pci *ar_pci);
|
|
|
|
#endif
|