Merge "usb: dwc3-msm: Toggle UTMI_OTG_VBUS_VALID while enabling EUD"

This commit is contained in:
qctecmdr 2024-01-10 19:32:32 -08:00 committed by Gerrit - the friendly Code Review server
commit 99a7e91dac

View File

@ -4887,7 +4887,7 @@ static int dwc3_msm_id_notifier(struct notifier_block *nb,
return NOTIFY_DONE;
}
static void dwc3_override_vbus_status(struct dwc3_msm *mdwc, bool vbus_present);
static int dwc3_msm_vbus_notifier(struct notifier_block *nb,
unsigned long event, void *ptr)
{
@ -4935,6 +4935,11 @@ static int dwc3_msm_vbus_notifier(struct notifier_block *nb,
return NOTIFY_DONE;
}
if (!spoof && mdwc->drd_state != DRD_STATE_UNDEFINED) {
dwc3_override_vbus_status(mdwc, !!event);
return NOTIFY_DONE;
}
mdwc->check_eud_state = true;
} else {
if (mdwc->vbus_active == event)