{
if (chip->gpio_vbus_5v) {
gpiod_set_raw_value(chip->gpio_vbus_5v, vbus_5v);
+ /* Only set state here, don't sync notifier to PMIC */
+ extcon_set_state(chip->extcon, EXTCON_USB_VBUS_EN, vbus_5v);
} else {
extcon_set_state(chip->extcon, EXTCON_USB_VBUS_EN, vbus_5v);
extcon_sync(chip->extcon, EXTCON_USB_VBUS_EN);
static void fusb_state_attached_source(struct fusb30x_chip *chip, int evt)
{
tcpm_set_polarity(chip, !(chip->cc_state & 0x01));
- extcon_set_state(chip->extcon, EXTCON_USB_HOST, 1);
platform_set_vbus_lvl_enable(chip, 1, 0);
tcpm_set_vconn(chip, 1);