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

Commit a5e5d3c0 authored by Axel Lin's avatar Axel Lin Committed by Kishon Vijay Abraham I
Browse files

phy: ti-pipe3: Simplify ti_pipe3_dpll_wait_lock implementation



Code simplification. No functional change.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent bd4abc2f
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -165,17 +165,13 @@ static int ti_pipe3_dpll_wait_lock(struct ti_pipe3 *phy)
		cpu_relax();
		val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_STATUS);
		if (val & PLL_LOCK)
			break;
			return 0;
	} while (!time_after(jiffies, timeout));

	if (!(val & PLL_LOCK)) {
	dev_err(phy->dev, "DPLL failed to lock\n");
	return -EBUSY;
}

	return 0;
}

static int ti_pipe3_dpll_program(struct ti_pipe3 *phy)
{
	u32			val;