]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0aa207e5d9c9bf626c5ed6883d03420ddf719cf2
tree5f464bf7ea1dd05284bce0f3991f3942e277af4d
parent3c35d9686802870043d0bbfe3d0f9a4f2c816378
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