PCI: qcom-ep: Move enable/disable resources code to common functions
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 2 May 2022 10:49:38 +0000 (16:19 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 11 May 2022 09:48:35 +0000 (10:48 +0100)
commitbc49681c96360e0ff9c6659e352eec3286b968ce
tree7ca71c18dc01cf2f209aee8b53239bd55b3ce28c
parent571dda6ca5136c1213bd36b9f298d4487e2b6622
PCI: qcom-ep: Move enable/disable resources code to common functions

Remove code duplication by moving the code related to enabling/disabling
the resources (PHY, CLK, Reset) to common functions so that they can be
called from multiple places.

[mani: renamed the functions and reworded the commit message]
Link: https://lore.kernel.org/r/20220502104938.97033-1-manivannan.sadhasivam@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pcie-qcom-ep.c