MLK-16697 usb: typec: tcpci: add notfication for device attach
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 08:57:23 +0000 (14:27 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit62f63723f1dfd834a532de0dbc262a68c2c1093a
tree69b8ec8c878fca37466d329e20b573638313405e
parent5975862b292b9bce09d544279443864de72edd5c
MLK-16697 usb: typec: tcpci: add notfication for device attach

Some usb device driver can't know the connect and disconnect to host
if the vbus is always on, if use typec we can rely on cc line status
to know that, so add a notification to let controller driver know
device attach and detach from host.

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