qcacld-3.0: Use PM wakelock to protect firmware downloading

To protect firmware not downloaded in system suspend, acquire/release
the cnss semaphore cnss_pm_sem. It is complex, and cnss function
cnss_pm_notify may trigger dead lock issue once PM_POST_SUSPEND is
ahead of PM_SUSPEND_PREPARE.

Optimize code to use PM wakelock API to protect firmware downloading.

Change-Id: I533c373b85f554fbcceb562d9f56c6b88e5155bb
CRs-Fixed: 3280247
This commit is contained in:
Yu Ouyang
2022-08-31 13:31:48 +08:00
committed by Madan Koyyalamudi
부모 1037054718
커밋 cc2bf81627
6개의 변경된 파일10개의 추가작업 그리고 80개의 파일을 삭제

파일 보기

@@ -854,8 +854,6 @@ int pld_get_mhi_state(struct device *dev);
int pld_is_pci_ep_awake(struct device *dev);
int pld_get_ce_id(struct device *dev, int irq);
int pld_get_irq(struct device *dev, int ce_id);
void pld_lock_pm_sem(struct device *dev);
void pld_release_pm_sem(struct device *dev);
void pld_lock_reg_window(struct device *dev, unsigned long *flags);
void pld_unlock_reg_window(struct device *dev, unsigned long *flags);
int pld_get_pci_slot(struct device *dev);