net: cnss: Add runtime idle callback support
When runtime PM support was added, runtime idle callback wasn't
implemented as it is not a mandatory callback to support runtime
PM. But with PCIe driver, without runtime idle callback returning
failure, pci_pm_runtime_idle calls pm_runtime_suspend which would
try to suspend the device immediately if idle call back is NULL
or it returns 0. pci_pm_runtime_idle call back would be called by PM
framework after resume completes to check if the device is ready
to suspend again. Without idle callback implemented, suspend call
back would be called immediately after resume completed. This
eludes the purpose of having the autosuspend delay. Also without
any delay between resume and suspend, communication stall noticed
between WLAN driver and firmware and eventually leading to crash.
CRs-fixed: 874209
Change-Id: I2ecd436ee81f867568f826146cb140b178a70da0
Signed-off-by:
Prashanth Bhatta <bhattap@codeaurora.org>
Loading
Please register or sign in to comment