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

This commit is contained in:
qctecmdr 2021-09-24 10:09:45 -07:00 • committed by Gerrit - the friendly Code Review server
commit d6cc60163d

View file

@ -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;
EP_PCIE_DBG(dev,
"PCIe V%d: relinquish bus bandwidth\n",
dev->rev);
rc = icc_set_bw(dev->icc_path, 0, 0);
EP_PCIE_DBG(dev,
"PCIe V%d: relinquish bus bandwidth returns %d\n",
dev->rev, rc);
}
if (!m2_enabled) {