MLK-17077 usb: typec: clear vbus change event in irq handler
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 09:11:51 +0000 (14:41 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit1795baa47428b03b21bd63732b3febdd6b118f73
tree882c209eea2d024d27ebadbc2ff84c875457d3d4
parentb2ceebf13e177f1626143b753d1b6aa583022ad5
MLK-17077 usb: typec: clear vbus change event in irq handler

For vbus change event, we need read the vbus status to clear
the alert. Current code do this in queue work, this has problem
on single core running, the queue work of vbus change may have
no chance to be scheduled as we continue receive the vbus change
event in threaded irq.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/usb/typec/tcpci.c