]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/staging/typec/tcpm.h
staging: typec: tcpm: Add timeout when waiting for role swap completion
[mirror_ubuntu-bionic-kernel.git] / drivers / staging / typec / tcpm.h
index 4c6b38cb2c8a950302620534a9ef4dd602d65c5b..374cea44a84a778f15c4b7e45c061807a0d5a0d4 100644 (file)
@@ -34,7 +34,8 @@ enum typec_cc_polarity {
 };
 
 /* Time to wait for TCPC to complete transmit */
-#define PD_T_TCPC_TX_TIMEOUT  100
+#define PD_T_TCPC_TX_TIMEOUT   100             /* in ms        */
+#define PD_ROLE_SWAP_TIMEOUT   (MSEC_PER_SEC * 10)
 
 enum tcpm_transmit_status {
        TCPC_TX_SUCCESS = 0,