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

Commit ee3daddc authored by Hemant Kumar's avatar Hemant Kumar Committed by Jack Pham
Browse files

usb: dwc3-msm: Remove qcom,no-vbus-vote-with-type-C property



This property was introduced to handle vbus regulator for
PD capable type-C and Micro-AB connector use case. Vbus
handling is shifted to extcon producer, this allows USB
driver to be agnostic of connector type and PD capability.

Change-Id: I1f40d23f94535c648708a2d0e9b57ac5721611b1
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent c3f43b2c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -72,8 +72,6 @@ Optional properties :
- qcom,pm-qos-latency: This represents max tolerable CPU latency in microsecs,
	which is used as a vote by driver to get max performance in perf mode.
- qcom,smmu-s1-bypass: If present, configure SMMU to bypass stage 1 translation.
- qcom,no-vbus-vote-with-type-C: If present, then do not try to get and enable VBUS
	regulator in type-C host mode from dwc3-msm driver.
- qcom,dbm-version: If present, specifies DBM version. Currently "1.4" or "1.5"
	are supported. If omitted, assume HW supports "1.5".
- qcom,reset-ep-after-lpm-resume: If present, dbm requires ep reset after
+1 −7
Original line number Diff line number Diff line
@@ -234,8 +234,6 @@ struct dwc3_msm {
	bool			hc_died;
	/* for usb connector either type-C or microAB */
	bool			type_c;
	/* whether to vote for VBUS reg in host mode */
	bool			no_vbus_vote_type_c;

	struct extcon_dev	*extcon_vbus;
	struct extcon_dev	*extcon_id;
@@ -3388,9 +3386,6 @@ static int dwc3_msm_probe(struct platform_device *pdev)
		mdwc->pm_qos_latency = 0;
	}

	mdwc->no_vbus_vote_type_c = of_property_read_bool(node,
					"qcom,no-vbus-vote-with-type-C");

	mutex_init(&mdwc->suspend_resume_mutex);
	/* Mark type-C as true by default */
	mdwc->type_c = true;
@@ -3672,8 +3667,7 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on)
	 * IS_ERR: regulator could not be obtained, so skip using it
	 * Valid pointer otherwise
	 */
	if (!mdwc->vbus_reg && (!mdwc->type_c ||
				(mdwc->type_c && !mdwc->no_vbus_vote_type_c))) {
	if (!mdwc->vbus_reg) {
		mdwc->vbus_reg = devm_regulator_get_optional(mdwc->dev,
					"vbus_dwc3");
		if (IS_ERR(mdwc->vbus_reg) &&