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

Skip to content
Commit f5c6660d authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru
Browse files

msm: mdss: initialize the DP thread structures before kthread_run



The DP event thread has workqueue and spinlock resources which are
initialized as part of the kthread event. This can cause a race
condition where the spinlock is accessed during EV_USBPD_DISCOVER_MODES
event at the end of DP probe sequence before it is initialized. This is
because kthread_run API doesn't guarantee the execution of DP event
thread to the point where spinlock is initialized before the function
call returns. Hence, initialize the DP thread resources before the
kthread_run.

Change-Id: I05711c33a896d409d4417d09973c6dfec61e818f
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent d72462d9
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