PCI: qcom: add runtime pm support to pcie_port
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 23 May 2018 10:44:25 +0000 (11:44 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 23 May 2018 15:32:21 +0000 (16:32 +0100)
commit854b69efbdd2903991506ac5d5624d2cfb5b4e2f
tree41d8be2aca13c97f68fcd44980f70911596d5a47
parent074df25160ff03e0e13eff058eca10f98f6197ab
PCI: qcom: add runtime pm support to pcie_port

This patch is required when the pcie controller sits on a bus with
its own power domain and clocks which are controlled via a bus driver
like simple pm bus. As these bus driver have runtime pm enabled, it makes
sense to update the usage counter so that the runtime pm does not suspend
the clks or power domain associated with the bus driver.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Stanimir Varbanov <svarbanov@mm-sol.com>
drivers/pci/dwc/pcie-qcom.c