]> git.hungrycats.org Git - linux/commit
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>
Wed, 13 May 2015 12:14:26 +0000 (05:14 -0700)
commit1fe4f5a891aaec75cebb6e763557c8c694c6260f
tree7176ee7786677c17645e5218612202365a5661fe
parent84b38028077d61c7058ede49ab7d115c563dc9ba
usb: chipidea: otg: remove mutex unlock and lock while stop and start role

commit a5a356cee89f86ff86cc3ce24136ca1f802c1bf1 upstream.

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")
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