OSDN Git Service

usb: chipidea: Fix otg event handler
authorLoic Poulain <loic.poulain@linaro.org>
Tue, 4 Sep 2018 15:18:58 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Nov 2019 13:43:40 +0000 (14:43 +0100)
commit426c546822567315391e0b21687152cf5146b7fd
tree70e660a4167c75b45971d16da4def0a2b3da1145
parent0075036cb414be3475d7f6d0f0ca3576b630307c
usb: chipidea: Fix otg event handler

[ Upstream commit 59739131e0ca06db7560f9073fff2fb83f6bc2a5 ]

At OTG work running time, it's possible that several events need to be
addressed (e.g. ID and VBUS events). The current implementation handles
only one event at a time which leads to ignoring the other one. Fix it.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/chipidea/otg.c