qcacld-3.0: Return -EAGAIN for idle shutdown if rmmod is in progress

If rmmod is in progress, return -EAGAIN for idle shutdown such that
cnss driver does not power off the soc and rmmod can succeed.

Change-Id: I91845da41bb666792a55aa3d446058025ce0fadb
CRs-Fixed: 2751194
This commit is contained in:
Alan Chen 2020-08-12 14:18:20 -07:00 • committed by snandini
commit 4b891d1d30

View file

@ -11218,6 +11218,7 @@ static int __hdd_psoc_idle_shutdown(struct hdd_context *hdd_ctx)
errno = osif_psoc_sync_trans_start(hdd_ctx->parent_dev, &psoc_sync);
if (errno) {
hdd_info("psoc busy, abort idle shutdown; errno:%d", errno);
errno = -EAGAIN;
goto exit;
}