diff options
author | Georgi Djakov <djakov@kernel.org> | 2021-12-06 18:53:06 +0100 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2021-12-06 18:53:06 +0100 |
commit | 1f41badaf6932f13eebf711045a4ad387e60cb0b (patch) | |
tree | 6a9f29f293babaf466f7d0b90a08f3c6d4950551 /drivers/interconnect/qcom/icc-rpm.c | |
parent | interconnect: qcom: rpm: Prevent integer overflow in rate (diff) | |
parent | interconnect: qcom: Add MSM8996 interconnect provider driver (diff) | |
download | linux-1f41badaf6932f13eebf711045a4ad387e60cb0b.tar.xz linux-1f41badaf6932f13eebf711045a4ad387e60cb0b.zip |
Merge branch 'icc-msm8996' into icc-next
This series adds a driver for interconnects on MSM8996. This fixes some rare display underflows
and provides a slight heat reduction.
* icc-msm8996
dt-bindings: interconnect: Combine SDM660 bindings into RPM schema
interconnect: icc-rpm: Add support for bus power domain
dt-bindings: interconnect: Add Qualcomm MSM8996 DT bindings
interconnect: qcom: Add MSM8996 interconnect provider driver
Link: https://lore.kernel.org/r/20211021132329.234942-1-y.oudjana@protonmail.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers/interconnect/qcom/icc-rpm.c')
-rw-r--r-- | drivers/interconnect/qcom/icc-rpm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index 6fa56c930bd1..939045f7c349 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -11,6 +11,7 @@ #include <linux/of_device.h> #include <linux/of_platform.h> #include <linux/platform_device.h> +#include <linux/pm_domain.h> #include <linux/regmap.h> #include <linux/slab.h> @@ -341,6 +342,12 @@ int qnoc_probe(struct platform_device *pdev) if (ret) return ret; + if (desc->has_bus_pd) { + ret = dev_pm_domain_attach(dev, true); + if (ret) + return ret; + } + provider = &qp->provider; INIT_LIST_HEAD(&provider->nodes); provider->dev = dev; |