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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2015 10:51:30 +0000 (12:51 +0200)
commita5a356cee89f86ff86cc3ce24136ca1f802c1bf1
treeb76a87e85f668e4c95c6ec4966994266c0bebcc0
parent8e779c6c4a398763c21371fe40f649206041dc1e
usb: chipidea: otg: remove mutex unlock and lock while stop and start role

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>
drivers/usb/chipidea/otg_fsm.c