MLK-17077 staging: 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>pull/10/head
parent
ef4148dc62
commit
c5500a2ee4
|
@ -547,6 +547,9 @@ static irqreturn_t tcpci_irq(int irq, void *dev_id)
|
|||
tcpm_cc_change(tcpci->port);
|
||||
|
||||
if (status & TCPC_ALERT_POWER_STATUS) {
|
||||
/* Read power status to clear the event */
|
||||
regmap_read(tcpci->regmap, TCPC_POWER_STATUS, ®);
|
||||
|
||||
regmap_read(tcpci->regmap, TCPC_POWER_STATUS_MASK, ®);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue