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)
commit131c7d12ef21e16697098b282f65fcf20792eafe
tree90b3fb1d9258e46fb64fc6623b84dbbf84f73251
parenta0a3e04e6b2c7cee376511be1524127cdfed264d
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