Amitkumar Karwar <akarwar@xxxxxxxxxxx> wrote: > From: Xinming Hu <huxm@xxxxxxxxxxx> > > main_process is not expected to be running when shutdown_drv function > is called. currently we wait for main_process completion in the > function. > > Actually the caller has already made sure main_process is completed by > performing below actions. > (1) disable interrupts in if_ops->disable_int. > (2) set adapter->surprise_removed = true, main_process wont be queued. > (3) mwifiex_terminate_workqueue(adapter), wait for workqueue to be > completed. > > This patch removes redundant wait code and takes care of related > cleanup. > > Signed-off-by: Xinming Hu <huxm@xxxxxxxxxxx> > Signed-off-by: Amitkumar Karwar <akarwar@xxxxxxxxxxx> 5 patches applied to wireless-drivers-next.git, thanks. 5bf15e3fb85d mwifiex: don't wait for main_process in shutdown_drv fb45bd0c6d6b mwifiex: do not free firmware dump memory in shutdown_drv d27121fca129 mwifiex: get rid of drv_info* adapter variables 41efaf5824e7 mwifiex: wait firmware dump complete during card remove process 3860e5e39532 mwifiex: move pcie_work and related variables inside card -- https://patchwork.kernel.org/patch/9431485/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches