* [PATCH v4] phy: qcom: qmp: Use power_on/off ops for PCIe
@ 2020-01-06 8:11 Bjorn Andersson
2020-02-21 6:17 ` John Stultz
2020-02-21 14:09 ` Vinod Koul
0 siblings, 2 replies; 4+ messages in thread
From: Bjorn Andersson @ 2020-01-06 8:11 UTC (permalink / raw)
To: Kishon Vijay Abraham I; +Cc: linux-arm-msm, linux-kernel
The PCIe PHY initialization requires the attached device to be present,
which is primarily achieved by the PCI controller driver. So move the
logic from init/exit to power_on/power_off.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
Changes since v3:
- Sent separate from SDM845 QMP/QHP series
Changes since v2:
- None
Changes since v1:
- None
drivers/phy/qualcomm/phy-qcom-qmp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c
index 7db2a94f7a99..e107a7eec235 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp.c
@@ -1967,7 +1967,7 @@ static const struct phy_ops qcom_qmp_phy_gen_ops = {
.owner = THIS_MODULE,
};
-static const struct phy_ops qcom_qmp_ufs_ops = {
+static const struct phy_ops qcom_qmp_pcie_ufs_ops = {
.power_on = qcom_qmp_phy_enable,
.power_off = qcom_qmp_phy_disable,
.set_mode = qcom_qmp_phy_set_mode,
@@ -2067,8 +2067,8 @@ int qcom_qmp_phy_create(struct device *dev, struct device_node *np, int id)
}
}
- if (qmp->cfg->type == PHY_TYPE_UFS)
- ops = &qcom_qmp_ufs_ops;
+ if (qmp->cfg->type == PHY_TYPE_UFS || qmp->cfg->type == PHY_TYPE_PCIE)
+ ops = &qcom_qmp_pcie_ufs_ops;
generic_phy = devm_phy_create(dev, np, ops);
if (IS_ERR(generic_phy)) {
--
2.24.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4] phy: qcom: qmp: Use power_on/off ops for PCIe
2020-01-06 8:11 [PATCH v4] phy: qcom: qmp: Use power_on/off ops for PCIe Bjorn Andersson
@ 2020-02-21 6:17 ` John Stultz
2020-02-21 14:09 ` Vinod Koul
1 sibling, 0 replies; 4+ messages in thread
From: John Stultz @ 2020-02-21 6:17 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Kishon Vijay Abraham I, linux-arm-msm, Linux Kernel Mailing List
On Mon, Jan 6, 2020 at 12:12 AM Bjorn Andersson
<bjorn.andersson@linaro.org> wrote:
>
> The PCIe PHY initialization requires the attached device to be present,
> which is primarily achieved by the PCI controller driver. So move the
> logic from init/exit to power_on/power_off.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
For what its worth:
Reviewed-by: John Stultz <john.stultz@linaro.org>
thanks
-john
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] phy: qcom: qmp: Use power_on/off ops for PCIe
2020-01-06 8:11 [PATCH v4] phy: qcom: qmp: Use power_on/off ops for PCIe Bjorn Andersson
2020-02-21 6:17 ` John Stultz
@ 2020-02-21 14:09 ` Vinod Koul
2020-03-05 11:26 ` Kishon Vijay Abraham I
1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2020-02-21 14:09 UTC (permalink / raw)
To: Bjorn Andersson; +Cc: Kishon Vijay Abraham I, linux-arm-msm, linux-kernel
On 06-01-20, 00:11, Bjorn Andersson wrote:
> The PCIe PHY initialization requires the attached device to be present,
> which is primarily achieved by the PCI controller driver. So move the
> logic from init/exit to power_on/power_off.
Reviewed-by: Vinod Koul <vkoul@kernel.org>
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] phy: qcom: qmp: Use power_on/off ops for PCIe
2020-02-21 14:09 ` Vinod Koul
@ 2020-03-05 11:26 ` Kishon Vijay Abraham I
0 siblings, 0 replies; 4+ messages in thread
From: Kishon Vijay Abraham I @ 2020-03-05 11:26 UTC (permalink / raw)
To: Vinod Koul, Bjorn Andersson; +Cc: linux-arm-msm, linux-kernel
On 21/02/20 7:39 pm, Vinod Koul wrote:
> On 06-01-20, 00:11, Bjorn Andersson wrote:
>> The PCIe PHY initialization requires the attached device to be present,
>> which is primarily achieved by the PCI controller driver. So move the
>> logic from init/exit to power_on/power_off.
>
> Reviewed-by: Vinod Koul <vkoul@kernel.org>
>
merged, thanks!
-Kishon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-05 11:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06 8:11 [PATCH v4] phy: qcom: qmp: Use power_on/off ops for PCIe Bjorn Andersson
2020-02-21 6:17 ` John Stultz
2020-02-21 14:09 ` Vinod Koul
2020-03-05 11:26 ` Kishon Vijay Abraham I
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).