Merge "usb: dwc3-msm: Toggle UTMI_OTG_VBUS_VALID while enabling EUD"
This commit is contained in:
commit
99a7e91dac
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user