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

Commit 5e269d44 authored by Tony Truong's avatar Tony Truong
Browse files

msm: pcie: correct cached PCIe link BW max gen speed



PCIe link BW (bandwidth) max GEN speed is incorrectly calculated.
Update bw_gen_max to have to the correct value.

Change-Id: I5a9c77e326966681bdc0efde84815dcea083d470
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent a9013b58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3752,7 +3752,7 @@ static int msm_pcie_get_bw_scale(struct msm_pcie_dev_t *pcie_dev)
		of_property_read_u32_array(pdev->dev.of_node, "qcom,bw-scale",
				(u32 *)pcie_dev->bw_scale, size / sizeof(u32));

		pcie_dev->bw_gen_max = size / sizeof(u32);
		pcie_dev->bw_gen_max = size / sizeof(*pcie_dev->bw_scale);
	} else {
		PCIE_DBG(pcie_dev, "RC%d: bandwidth scaling is not supported\n",
			pcie_dev->rc_idx);