MLK-16285-1 usb: typec: tcpci: move request interrupt to the end of probe
authorPeter Chen <peter.chen@nxp.com>
Wed, 9 Jan 2019 07:44:27 +0000 (13:14 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit00e89b84e274a2d21676e1bd40ffa3e762c2c63c
tree3ab26e7865d2f812769bfb63ecbac8a6e90e07e7
parent3f76e19769b5d8e3d53101886a4da27a5e6142a6
MLK-16285-1 usb: 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>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/usb/typec/tcpci.c