MLK-16285-1 staging: typec: tcpci: move request interrupt to the end of probe
authorPeter Chen <peter.chen@nxp.com>
Fri, 15 Sep 2017 02:05:21 +0000 (10:05 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:36 +0000 (15:38 -0500)
commita67ef7eaba2542ce56d0bdb8341cd49000252137
tree7819600d633fd9e692372c1870436185a4ec0762
parent0962fb5b3b019d16c2104bf0f8f9ab58ae65b912
MLK-16285-1 staging: typec: tcpci: move request interrupt to the end of probe

The tcpci_irq may visit tcpci->port if unexpected interrupt occurs
(eg, board design issue causes GPIO status is incorrect) and cause
NULL pointer dereference issue.

Besides, delete clear TCPC_ALERT and TCPC_ALERT_MASK code which are
already done at tcpci_init.

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