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

Commit e461c331 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: phy: qmp: Remove ext-vbus-id property"

parents 5f40250a 35e1c9ee
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -101,7 +101,6 @@ Optional properties:
 - qcom,vbus-valid-override: If present, indicates VBUS pin is not connected to
   the USB PHY and the controller must rely on external VBUS notification in
   order to manually relay the notification to the SSPHY.
 - qcom,ext-vbus-id: If present, indicates that the PHY does not handle VBUS and ID changes.
 - qcom,no-pipe-clk-switch: If present, indicates that the pipe_clk does not need
   to switch sources between the XO and the PHY PIPE clock output.

+1 −6
Original line number Diff line number Diff line
@@ -200,7 +200,6 @@ struct msm_ssphy_qmp {
	bool			clk_enabled;
	bool			cable_connected;
	bool			in_suspend;
	bool			ext_vbus_id;
	bool			override_pll_cal;
	bool			switch_pipe_clk_src;
};
@@ -533,8 +532,7 @@ static int msm_ssphy_power_enable(struct msm_ssphy_qmp *phy, bool on)
	 * Turn off the phy's LDOs when cable is disconnected for device mode
	 * with external vbus_id indication.
	 */
	if (!host && !chg_connected && phy->ext_vbus_id &&
		!phy->cable_connected) {
	if (!host && !chg_connected && !phy->cable_connected) {
		if (on) {
			ret = regulator_enable(phy->vdd);
			if (ret)
@@ -677,9 +675,6 @@ static int msm_ssphy_qmp_probe(struct platform_device *pdev)
		return ret;
	}

	phy->ext_vbus_id =
		of_property_read_bool(dev->of_node, "qcom,ext-vbus-id");

	phy->vdd = devm_regulator_get(dev, "vdd");
	if (IS_ERR(phy->vdd)) {
		dev_err(dev, "unable to get vdd supply\n");