usb: dwc3-msm: fix possible race condition when data role swapping

Commit a92b616a86a4("usb: dwc3-msm: Switch to freezable workqueue
for sm_work") introduced a freezable workqueue for running
the work sm_work.
But commit 098765bb87de("usb: dwc3-msm: Ensure hardware is reset
during role change") enqueued sm_work into another workqueue
and made it possible for sm_work to be performed by two threads
concurrently.

Bug: 179232088
Change-Id: I5823788706e3ca69dbd3b3a2b6527972ff8139aa
Signed-off-by: Ricky Niu <rickyniu@google.com>
1 file changed