PCI: qcom-ep: Add ICC bandwidth voting support
authorKrishna chaitanya chundru <quic_krichai@quicinc.com>
Wed, 19 Jul 2023 07:20:18 +0000 (12:50 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Tue, 29 Aug 2023 15:24:55 +0000 (15:24 +0000)
commit01794236666abef69a07b48fa0948c4157d7ca70
tree6f449715e7d319622505779f5f00f83948a3a279
parente590ad240ff0d4924ad5b0648634d391fbb2e40f
PCI: qcom-ep: Add ICC bandwidth voting support

Add support for voting interconnect (ICC) bandwidth based
on the link speed and width.

This commit is inspired from the basic interconnect support added
to pcie-qcom driver in commit c4860af88d0c ("PCI: qcom: Add basic
interconnect support").

The interconnect support is kept optional to be backward compatible
with legacy device trees.

[kwilczynski: add missing kernel-doc for the icc_mem variable]
Link: https://lore.kernel.org/linux-pci/1689751218-24492-5-git-send-email-quic_krichai@quicinc.com
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-qcom-ep.c