]> git.baikalelectronics.ru Git - kernel.git/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>
Tue, 28 Apr 2015 10:51:30 +0000 (12:51 +0200)
commit8cd008b05cd677cb6f37fb4afea4a272ce437c4a
treeb76a87e85f668e4c95c6ec4966994266c0bebcc0
parent16d095e9d09dfa156384f2327254c5631759c594
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: f0ca965819ec ("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