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

Commit adc98ccf authored by Can Guo's avatar Can Guo
Browse files

msm: ep-pcie: Fix icc bus vote and add icc bus unvote



We need to perform icc bus vote when enable endpoint and bus unvote when
disable endpoint. However, icc_path is released during endpoint disable
(by ep_pcie_clk_deinit()). This change fixes icc bus vote and adds icc bus
unvote accordingly.

Change-Id: Iaa4c6e4df5923a325f038dba689ef17bc746bab4
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 2a010244
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -437,7 +437,7 @@ static int ep_pcie_clk_init(struct ep_pcie_dev_t *dev)

static void ep_pcie_clk_deinit(struct ep_pcie_dev_t *dev)
{
	int i;
	int i, rc;

	EP_PCIE_DBG(dev, "PCIe V%d\n", dev->rev);

@@ -446,11 +446,10 @@ static void ep_pcie_clk_deinit(struct ep_pcie_dev_t *dev)
			clk_disable_unprepare(dev->clk[i].hdl);

	if (dev->icc_path) {
		icc_put(dev->icc_path);
		dev->icc_path = 0;
		rc = icc_set_bw(dev->icc_path, 0, 0);
		EP_PCIE_DBG(dev,
				"PCIe V%d: relinquish bus bandwidth\n",
				dev->rev);
			"PCIe V%d: relinquish bus bandwidth returns %d\n",
			dev->rev, rc);
	}

	if (!m2_enabled) {