qcacmn: Set the initial wake flag on MSI resume

When the wlan driver is suspending, the last thing it does is check to
see if the firmware has indicated a wakeup during the suspend process.
This is done by checking the initial wakeup flag, which is set when a
specific copy engine payload is received from firmware. For the new
dedicated wake MSI, only the wake signal is received, no payload. When
the wake MSI is toggled, set the initial wakeup flag to prevent race
conditions during the suspend process.

Change-Id: Id53cc7884431a437136d8dca068449bc5a25b87c
CRs-Fixed: 2133469
Этот коммит содержится в:
Dustin Brown
2017-10-04 17:03:56 -07:00
коммит произвёл snandini
родитель b851d10868
Коммит bbba9176f8
4 изменённых файлов: 36 добавлений и 0 удалений

Просмотреть файл

@@ -317,6 +317,9 @@ HTC_HANDLE htc_create(void *ol_sc, struct htc_init_info *pInfo,
hif_post_init(target->hif_dev, target, &htcCallbacks);
hif_get_default_pipe(target->hif_dev, &pEndpoint->UL_PipeID,
&pEndpoint->DL_PipeID);
hif_set_initial_wakeup_cb(target->hif_dev,
pInfo->target_initial_wakeup_cb,
pInfo->target_psoc);
} while (false);