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

Commit 61d9da7a authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Gerrit - the friendly Code Review server
Browse files

USB: phy: msm: Check for PHY reset handle also



Currently reset APIs are checking only for phy_reset_clk, which may not
be present if it is only reset only clock. Hence check for PHY reset
handle as well to allow resetting PHY.

Change-Id: Iff8f254dac0e0bc27aa7ba1530d133cb0e2df708
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 9f1b0800
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -621,7 +621,7 @@ static int msm_otg_phy_clk_reset(struct msm_otg *motg)
{
	int ret;

	if (!motg->phy_reset_clk)
	if (!motg->phy_reset_clk && !motg->phy_reset)
		return 0;

	if (motg->sleep_clk)
@@ -823,7 +823,7 @@ static void msm_usb_phy_reset(struct msm_otg *motg)
				motg->phy_csr_regs + QUSB2PHY_PORT_POWERDOWN);
		break;
	case SNPS_FEMTO_PHY:
		if (!motg->phy_por_clk) {
		if (!motg->phy_por_clk && !motg->phy_por_reset) {
			pr_err("phy_por_clk missing\n");
			break;
		}