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:
Padmanabhan Komanduru <pkomandu@codeaurora.org>
Loading
Please register or sign in to comment