usb: chipidea: otg: remove mutex unlock and lock while stop and start role
authorLi Jun <jun.li@freescale.com>
Sun, 12 Apr 2015 09:51:02 +0000 (17:51 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:38 +0000 (19:12 -0400)
commit69e961c2193d21b1e754310c96dbcd8ffd224a3e
treeb591c43a99734f53a163828b350721adb96d2bfa
parenta142e9641dcbead2c8845c949ad518acac96ed28
usb: chipidea: otg: remove mutex unlock and lock while stop and start role

[ Upstream commit a5a356cee89f86ff86cc3ce24136ca1f802c1bf1 ]

Wrongly release mutex lock during otg_statemachine may result in re-enter
otg_statemachine, which is not allowed, we should do next state transtition
after previous one completed.

Fixes: 826cfe751f3e ("usb: chipidea: add OTG fsm operation functions implementation")
Cc: <stable@vger.kernel.org> # v3.16+
Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/chipidea/otg_fsm.c