[PATCH RFC DNM 04/15] soc: qcom: pmic_glink_altmode: Enable TBT/USB4 negotiation

From: Konrad Dybcio

Date: Tue Nov 24 2026 - 15:02:04 EST


From: Wesley Cheng <wesley.cheng@xxxxxxxxxxxxxxxx>

Now that USB4 is supported, stop identifying as an installer image and
report the default OS type instead. Newer versions of the Glymur SoCCP
firmware require this argument before they enable USB4 tunneling.

[missing W's s-o-b]
[konrad: commit message]
Signed-off-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
---
drivers/soc/qcom/pmic_glink_altmode.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/soc/qcom/pmic_glink_altmode.c b/drivers/soc/qcom/pmic_glink_altmode.c
index a8097c54a65559b48f64bfb65a1a4d0d8e033be8..f54d02994eaa96af04c673459b28edd482de37db 100644
--- a/drivers/soc/qcom/pmic_glink_altmode.c
+++ b/drivers/soc/qcom/pmic_glink_altmode.c
@@ -571,10 +571,9 @@ static void pmic_glink_altmode_enable_worker(struct work_struct *work)
struct pmic_glink_altmode *altmode = work_to_altmode(work);
int ret;

- /* Set OS to installer for now to restrict USB4/TBT negotiation */
ret = pmic_glink_altmode_request(altmode, ALTMODE_PAN_EN,
- FIELD_PREP(PAN_EN_VERSION, 1) |
- FIELD_PREP(PAN_EN_OS_TYPE, PAN_EN_OS_INSTALLER));
+ FIELD_PREP(PAN_EN_VERSION, 0) |
+ FIELD_PREP(PAN_EN_OS_TYPE, PAN_EN_OS_DEFAULT));
if (ret)
dev_err(altmode->dev, "failed to request altmode notifications: %d\n", ret);
}

--
2.55.0