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

Commit 7536b127 authored by Jack Pham's avatar Jack Pham
Browse files

usb: phy: qusb: Fix incorrect clock assignment



The clk_get() of the AHB clock was incorrectly assigned
to the PHY reset variable. It only appeared to work before
because the QMP PHY also happens to enable this clock
which allows the CSR register accesses to go through.

Change-Id: I2d1ddee2e4e1f8490ba230e9b91e1dcf609d662a
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 82f65cf9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ static int qusb_phy_probe(struct platform_device *pdev)
		return PTR_ERR(qphy->ref_clk);
	clk_set_rate(qphy->ref_clk, 19200000);

	qphy->phy_reset = devm_clk_get(dev, "cfg_ahb_clk");
	qphy->cfg_ahb_clk = devm_clk_get(dev, "cfg_ahb_clk");
	if (IS_ERR(qphy->cfg_ahb_clk))
		return PTR_ERR(qphy->cfg_ahb_clk);