aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2021-08-13 04:28:32 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2021-08-13 04:28:32 +0300
commit7644c86e7429a8766ac8ac2b9b518807207406bb (patch)
tree1b095781284b7a4e3add2fbbef1ec7b1cc4ad22d
parent1429722a220973e881d8cb5b5b486693457b4f11 (diff)
Reset PHY on orientation change to restore USB gadget support on RB5 Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
-rw-r--r--drivers/phy/qualcomm/phy-qcom-qmp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c
index c32b554e794d..dccb7e8ebead 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp.c
@@ -5210,14 +5210,12 @@ static int qcom_qmp_phy_typec_switch_set(struct typec_switch *sw,
enum typec_orientation orientation)
{
struct qcom_qmp *qmp = typec_switch_get_drvdata(sw);
+ struct qmp_phy *qphy = qmp->phys[0];
qmp->orientation = orientation;
if (qmp->init_count) {
- // FIXME: is this necessary?
- // FIXME: reset DP part ?
- // SW_DPPHY_RESET_MUX | SW_DPPHY_RESET |
- qcom_qmp_phy_dp_com_reset(qmp,
- SW_USB3PHY_RESET_MUX | SW_USB3PHY_RESET);
+ qcom_qmp_phy_disable(qphy->phy);
+ qcom_qmp_phy_enable(qphy->phy);
}
return 0;