]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/usb/typec/tcpm.c
staging: typec: tcpm: Switch to PORT_RESET instead of SNK_UNATTACHED
authorBadhri Jagan Sridharan <badhri@google.com>
Mon, 28 Aug 2017 17:23:22 +0000 (10:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Aug 2017 06:21:11 +0000 (08:21 +0200)
commit56277035c294ec4877aabc97febcf55a2b3ef397
tree5f464bf7ea1dd05284bce0f3991f3942e277af4d
parentf451ac9e4c6dd2c9ee5397a28a60084fc77f63d7
staging: typec: tcpm: Switch to PORT_RESET instead of SNK_UNATTACHED

When VBUS is not discovered within PD_T_PS_SOURCE_ON although Rp
is detected on CC, TCPM switches the port to SNK_UNATTACHED
state. SNK_UNATTACHED, however does not force TYPEC_CC_OPEN which
makes the partner(source) to think that it is connected.

To overcome this issue, force the port into PORT_RESET state
to make sure the CC lines are open.

Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/typec/tcpm.c