]> git.baikalelectronics.ru Git - kernel.git/commit
staging: typec: tcpm: Follow Try.SRC exit requirements
authorBadhri Jagan Sridharan <badhri@google.com>
Mon, 28 Aug 2017 17:23:16 +0000 (10:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Aug 2017 06:21:10 +0000 (08:21 +0200)
commitfbfd46701d576908cda8d603e89eb31d07642cc4
tree90b3fb1d9258e46fb64fc6623b84dbbf84f73251
parentc9cf5efef9803d4948e7804b7c38fee4a843e125
staging: typec: tcpm: Follow Try.SRC exit requirements

According to spec:
" 4.5.2.2.9.2 Exiting from Try.SRC State:
The port shall transition to Attached.SRC when the SRC.Rd
state is detected on exactly one of the CC1 or CC2 pins for
at least tPDDebounce. The port shall transition to
TryWait.SNK after tDRPTry and the SRC.Rd state has not been
detected."

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