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

Commit d2750e17 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: PHY: Make default behavior as No external resistance"

parents dabca6e5 ed9203de
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -97,7 +97,6 @@ struct msm_hsphy {
	bool			suspended;
	bool			cable_connected;
	bool			dpdm_enable;
	bool			no_rext_present;

	int			*param_override_seq;
	int			param_override_seq_cnt;
@@ -433,15 +432,6 @@ static int msm_hsphy_init(struct usb_phy *uphy)
				phy->rcal_mask, phy->phy_rcal_reg, rcal_code);
	}

	/*
	 * Use external resistor value only if:
	 * a. It is present and
	 * b. efuse is not programmed.
	 */
	if (!phy->no_rext_present && !rcal_code)
		msm_usb_write_readback(phy->base, USB2PHY_USB_PHY_RTUNE_SEL,
			RTUNE_SEL, RTUNE_SEL);

	msm_usb_write_readback(phy->base, USB2_PHY_USB_PHY_HS_PHY_CTRL_COMMON2,
				VREGBYPASS, VREGBYPASS);

@@ -732,9 +722,6 @@ static int msm_hsphy_probe(struct platform_device *pdev)
	if (IS_ERR(phy->phy_reset))
		return PTR_ERR(phy->phy_reset);

	phy->no_rext_present = of_property_read_bool(dev->of_node,
					"qcom,no-rext-present");

	phy->param_override_seq_cnt = of_property_count_elems_of_size(
					dev->of_node,
					"qcom,param-override-seq",