MLK-16776 usb: typec: tcpci: use vbus from partner for EXTCON_USB
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 09:02:42 +0000 (14:32 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit8132778f0677ed58d8fa9e21d88577dbe9691f10
tree31df55c2078ea31ed02f6c47bd28e081e5e995b3
parent62f63723f1dfd834a532de0dbc262a68c2c1093a
MLK-16776 usb: typec: tcpci: use vbus from partner for EXTCON_USB

Change to use the vbus from partner to notify EXTCON_USB.
This is to work around the case of source only typec port
connecting to Host PC via a Rp fixed cable.

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