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

Skip to content
Commit d37fe086 authored by Jyothi Kumar Seerapu's avatar Jyothi Kumar Seerapu
Browse files

pci: msm: Flush workqueue and destroy it in mhi controller unregister



In mhi_unregister_mhi_controller function, flush the work queue and then
destroy it for releasing the memory of unused workqueues.
When multiple mhi-based WLAN endpoints are attached directly or
over switch, then there can be multiple mhi controllers and
so CNSS driver calls for mhi controller registration multiple times.
Each time invoking mhi controller register creates another set of
workqueues and previous workqueues become stale.
By doing so, it will consume the system memory.

So, better to release the memory assigned to workqueue by destroying
the work queue in mhi_unregister_mhi_controller function.

Change-Id: I838371e9c00969a64e658e6175115363ccb916bf
Signed-off-by: default avatarJyothi Kumar Seerapu <quic_jseerapu@quicinc.com>
parent 9ef9b9d5
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