diff options
Diffstat (limited to 'driver/tcpm')
-rw-r--r-- | driver/tcpm/tcpm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/driver/tcpm/tcpm.h b/driver/tcpm/tcpm.h index e1db30ecb8..7450bbf7c3 100644 --- a/driver/tcpm/tcpm.h +++ b/driver/tcpm/tcpm.h @@ -312,6 +312,15 @@ static inline int tcpm_debug_accessory(int port, bool enable) return EC_SUCCESS; } +static inline int tcpm_debug_detach(int port) +{ + if (tcpc_config[port].drv->debug_detach) + return tcpc_config[port].drv->debug_detach(port); + + /* No special handling for debug disconnections? Success! */ + return EC_SUCCESS; +} + #ifdef CONFIG_USB_PD_TCPC_LOW_POWER static inline int tcpm_enter_low_power_mode(int port) { |