Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c0656c6 authored by Devdutt Patnaik's avatar Devdutt Patnaik Committed by Hemant Kumar
Browse files

usb: dwc3_otg: Remove logic to manually set BSV



Removes logic to manually override BSV. Instead rely
on psy framework to set BSV. This is also applicable
to emulation platform scenarios.

Change-Id: I96a1a14edfe4462657835b1512de13014f36c734
Signed-off-by: default avatarDevdutt Patnaik <dpatnaik@codeaurora.org>
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 81e1da90
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2853,7 +2853,6 @@ psy_error:

void dwc3_otg_init_sm(struct dwc3_msm *mdwc)
{
	struct dwc3 *dwc = platform_get_drvdata(mdwc->dwc3);
	int ret;

	/*
@@ -2866,14 +2865,6 @@ void dwc3_otg_init_sm(struct dwc3_msm *mdwc)
		/* We can safely assume no cable connected */
		set_bit(ID, &mdwc->inputs);
	}

	/*
	 * If vbus-present property was set then set BSV to 1.
	 * This is needed for emulation platforms as PMIC VBUS
	 * interrupt is not available.
	 */
	if (dwc->vbus_active)
		set_bit(B_SESS_VLD, &mdwc->inputs);
}

/**