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

Commit 4f875855 authored by Pratham Pratap's avatar Pratham Pratap Committed by Jack Pham
Browse files

usb: phy: qmp: Fix offset of MISC_TYPEC_CTRL register



Change the offset of MISC_TYPEC_CTRL register to come before
optional DP Combo registers. This change also corrects one typo
in checking of the usb3-or-dp compatible string.

Change-Id: I706f87493ca478455db7077af653b66d565ee5f6
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 92482432
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -83,6 +83,9 @@ enum qmp_phy_rev_reg {
	USB3_PHY_SW_RESET,
	USB3_PHY_START,

	/* TypeC port select configuration (optional) */
	USB3_PHY_PCS_MISC_TYPEC_CTRL,

	/* USB DP Combo PHY related */
	USB3_DP_DP_PHY_PD_CTL,
	USB3_DP_COM_POWER_DOWN_CTRL,
@@ -95,8 +98,6 @@ enum qmp_phy_rev_reg {
	USB3_DP_PCS_PCS_STATUS2,
	USB3_DP_PCS_INSIG_SW_CTRL3,
	USB3_DP_PCS_INSIG_MX_CTRL3,
	/* TypeC port select configuration (optional) */
	USB3_PHY_PCS_MISC_TYPEC_CTRL,
	USB3_PHY_REG_MAX,
};

@@ -892,7 +893,7 @@ static int msm_ssphy_qmp_probe(struct platform_device *pdev)
		phy->phy.type = USB_PHY_TYPE_USB3_AND_DP;

	if (of_device_is_compatible(dev->of_node,
			"qcom,usb-ssphy-qmp-usb-or-dp"))
			"qcom,usb-ssphy-qmp-usb3-or-dp"))
		phy->phy.type = USB_PHY_TYPE_USB3_OR_DP;

	ret = msm_ssphy_qmp_get_clks(phy, dev);