Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15e294e7 authored by Prashanth Bhatta's avatar Prashanth Bhatta
Browse files

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: default avatarPrashanth Bhatta <bhattap@codeaurora.org>
parent 848b312e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment