qcacmn: Trigger sys wakeup for WMI command when WOW is enabled

DHCP packet is received in the IPA exception path when
system is suspending. As part of DHCP packet processing,
WMI_PEER_SET_PARAM_CMDID is sent to FW after WOW is
enabled resulting in self recovery getting triggered by
host.

Fix is to do an explicit system wakeup if a WMI command
has to be sent post WOW enablement.

Change-Id: If1904a4fe5c861deed1b35071be10cb8cc8d6407
CRs-Fixed: 2890913
This commit is contained in:
Yeshwanth Sriram Guntuka
2021-03-16 13:49:31 +05:30
committed by snandini
父節點 125c4c2a60
當前提交 6611374cf4
共有 7 個文件被更改,包括 327 次插入4 次删除

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2014, 2016-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2014, 2016-2021 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -860,4 +860,19 @@ void htc_print_credit_history(HTC_HANDLE htc, uint32_t count,
print(print_priv, "HTC Credit History Feature is disabled");
}
#endif
#ifdef SYSTEM_PM_CHECK
/**
* htc_system_resume() - Send out any pending WMI/HTT
* messages pending in htc queues on system resume.
* @htc: HTC handle
*
* Return: None
*/
void htc_system_resume(HTC_HANDLE htc);
#else
static inline void htc_system_resume(HTC_HANDLE htc)
{
}
#endif
#endif /* _HTC_API_H_ */