]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e62c4ad0d03c6e7fb0ec036c97c474f1f214590
tree1fc98ad3c3438c8e8dcb82075506d3fc2adb1014
parent08b3a5c018b8e55bfbcee93146b92070af55ff47
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