diff options
Diffstat (limited to 'driver/ppc/ktu1125.c')
-rw-r--r-- | driver/ppc/ktu1125.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/driver/ppc/ktu1125.c b/driver/ppc/ktu1125.c index 698c4f6cb1..647512d801 100644 --- a/driver/ppc/ktu1125.c +++ b/driver/ppc/ktu1125.c @@ -280,15 +280,12 @@ static int ktu1125_is_sourcing_vbus(int port) #ifdef CONFIG_USBC_PPC_POLARITY static int ktu1125_set_polarity(int port, int polarity) { - if (polarity) { - /* CC2 active. */ - clr_flags(port, KTU1125_CTRL_SW_CFG, KTU1125_CC2S_VCONN); - return set_flags(port, KTU1125_CTRL_SW_CFG, KTU1125_CC1S_VCONN); - } - - /* else CC1 active. */ - clr_flags(port, KTU1125_CTRL_SW_CFG, KTU1125_CC1S_VCONN); - return set_flags(port, KTU1125_CTRL_SW_CFG, KTU1125_CC2S_VCONN); + /* + * KTU1125 doesn't need to be informed about polarity. + * Polarity is queried via pd_get_polarity when applying VCONN. + */ + ppc_prints("KTU1125 sets polarity only when applying VCONN", port); + return EC_SUCCESS; } #endif |