staging: typec: tcpm: typec: tcpm: Wait for CC debounce before PD excg
authorBadhri Jagan Sridharan <badhri@google.com>
Mon, 28 Aug 2017 17:23:20 +0000 (10:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Aug 2017 06:21:10 +0000 (08:21 +0200)
commitb965b6317ff147d379c7a60c852f6027a724634f
tree1fc98ad3c3438c8e8dcb82075506d3fc2adb1014
parentf3b73364a1f2ac1a54f58c2387e6593b3d49c965
staging: typec: tcpm: typec: tcpm: Wait for CC debounce before PD excg

Once, Rp or Rd is switched, wait for PD_T_CC_DEBOUNCE. If not the
PS_RDY message transmitted might result in failure.
Also, Only wait for PD_T_SRCSWAPSTDBY while in
PR_SWAP_SRC_SNK_TRANSITION_OFF. PD_T_PS_SOURCE_OFF is the overall
time after which the initial sink would issue hard reset.

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/pd.h
drivers/staging/typec/tcpm.c