* [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp
@ 2025-03-26 12:49 Johan Hovold
2025-03-26 13:25 ` Konrad Dybcio
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Johan Hovold @ 2025-03-26 12:49 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: linux-arm-msm, linux-kernel, Johan Hovold, Abel Vesa,
Dmitry Baryshkov
Commit ad3dd9592b2a ("soc: qcom: pmic_glink: disable UCSI on sc8280xp")
disabled UCSI shortly after it had been enabled to fix a regression that
was observed on the Lenovo ThinkPad X13s.
Specifically, disconnecting an external display would trigger a system
error and hypervisor reset but no one cared enough to track down the bug
at the time.
The same issue was recently observed on X Elite machines, and commit
f47eba045e6c ("usb: typec: ucsi: Set orientation as none when connector
is unplugged") worked around the underlying issue by setting the
connector orientation to 'none' on disconnect events to avoid having the
PHY driver crash the machine in one orientation.
Enable UCSI support also on sc8280xp now that the DisplayPort disconnect
crashes are gone.
Cc: Abel Vesa <abel.vesa@linaro.org>
Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/soc/qcom/pmic_glink.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c
index cde19cdfd3c7..0a6d325b195c 100644
--- a/drivers/soc/qcom/pmic_glink.c
+++ b/drivers/soc/qcom/pmic_glink.c
@@ -371,15 +371,11 @@ static void pmic_glink_remove(struct platform_device *pdev)
__pmic_glink = NULL;
}
-static const unsigned long pmic_glink_sc8280xp_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) |
- BIT(PMIC_GLINK_CLIENT_ALTMODE);
-
static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) |
BIT(PMIC_GLINK_CLIENT_ALTMODE) |
BIT(PMIC_GLINK_CLIENT_UCSI);
static const struct of_device_id pmic_glink_of_match[] = {
- { .compatible = "qcom,sc8280xp-pmic-glink", .data = &pmic_glink_sc8280xp_client_mask },
{ .compatible = "qcom,pmic-glink", .data = &pmic_glink_sm8450_client_mask },
{}
};
--
2.48.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp
2025-03-26 12:49 [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp Johan Hovold
@ 2025-03-26 13:25 ` Konrad Dybcio
2025-03-26 14:34 ` Dmitry Baryshkov
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-03-26 13:25 UTC (permalink / raw)
To: Johan Hovold, Bjorn Andersson, Konrad Dybcio
Cc: linux-arm-msm, linux-kernel, Abel Vesa, Dmitry Baryshkov
On 3/26/25 1:49 PM, Johan Hovold wrote:
> Commit ad3dd9592b2a ("soc: qcom: pmic_glink: disable UCSI on sc8280xp")
> disabled UCSI shortly after it had been enabled to fix a regression that
> was observed on the Lenovo ThinkPad X13s.
>
> Specifically, disconnecting an external display would trigger a system
> error and hypervisor reset but no one cared enough to track down the bug
> at the time.
>
> The same issue was recently observed on X Elite machines, and commit
> f47eba045e6c ("usb: typec: ucsi: Set orientation as none when connector
> is unplugged") worked around the underlying issue by setting the
> connector orientation to 'none' on disconnect events to avoid having the
> PHY driver crash the machine in one orientation.
>
> Enable UCSI support also on sc8280xp now that the DisplayPort disconnect
> crashes are gone.
>
> Cc: Abel Vesa <abel.vesa@linaro.org>
> Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp
2025-03-26 12:49 [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp Johan Hovold
2025-03-26 13:25 ` Konrad Dybcio
@ 2025-03-26 14:34 ` Dmitry Baryshkov
2025-03-27 8:01 ` Abel Vesa
2025-05-09 22:13 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2025-03-26 14:34 UTC (permalink / raw)
To: Johan Hovold
Cc: Bjorn Andersson, Konrad Dybcio, linux-arm-msm, linux-kernel,
Abel Vesa
On Wed, Mar 26, 2025 at 01:49:44PM +0100, Johan Hovold wrote:
> Commit ad3dd9592b2a ("soc: qcom: pmic_glink: disable UCSI on sc8280xp")
> disabled UCSI shortly after it had been enabled to fix a regression that
> was observed on the Lenovo ThinkPad X13s.
>
> Specifically, disconnecting an external display would trigger a system
> error and hypervisor reset but no one cared enough to track down the bug
> at the time.
>
> The same issue was recently observed on X Elite machines, and commit
> f47eba045e6c ("usb: typec: ucsi: Set orientation as none when connector
> is unplugged") worked around the underlying issue by setting the
> connector orientation to 'none' on disconnect events to avoid having the
> PHY driver crash the machine in one orientation.
>
> Enable UCSI support also on sc8280xp now that the DisplayPort disconnect
> crashes are gone.
>
> Cc: Abel Vesa <abel.vesa@linaro.org>
> Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> drivers/soc/qcom/pmic_glink.c | 4 ----
> 1 file changed, 4 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp
2025-03-26 12:49 [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp Johan Hovold
2025-03-26 13:25 ` Konrad Dybcio
2025-03-26 14:34 ` Dmitry Baryshkov
@ 2025-03-27 8:01 ` Abel Vesa
2025-05-09 22:13 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Abel Vesa @ 2025-03-27 8:01 UTC (permalink / raw)
To: Johan Hovold
Cc: Bjorn Andersson, Konrad Dybcio, linux-arm-msm, linux-kernel,
Dmitry Baryshkov
On 25-03-26 13:49:44, Johan Hovold wrote:
> Commit ad3dd9592b2a ("soc: qcom: pmic_glink: disable UCSI on sc8280xp")
> disabled UCSI shortly after it had been enabled to fix a regression that
> was observed on the Lenovo ThinkPad X13s.
>
> Specifically, disconnecting an external display would trigger a system
> error and hypervisor reset but no one cared enough to track down the bug
> at the time.
>
> The same issue was recently observed on X Elite machines, and commit
> f47eba045e6c ("usb: typec: ucsi: Set orientation as none when connector
> is unplugged") worked around the underlying issue by setting the
> connector orientation to 'none' on disconnect events to avoid having the
> PHY driver crash the machine in one orientation.
>
> Enable UCSI support also on sc8280xp now that the DisplayPort disconnect
> crashes are gone.
>
> Cc: Abel Vesa <abel.vesa@linaro.org>
> Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp
2025-03-26 12:49 [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp Johan Hovold
` (2 preceding siblings ...)
2025-03-27 8:01 ` Abel Vesa
@ 2025-05-09 22:13 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2025-05-09 22:13 UTC (permalink / raw)
To: Konrad Dybcio, Johan Hovold
Cc: linux-arm-msm, linux-kernel, Abel Vesa, Dmitry Baryshkov
On Wed, 26 Mar 2025 13:49:44 +0100, Johan Hovold wrote:
> Commit ad3dd9592b2a ("soc: qcom: pmic_glink: disable UCSI on sc8280xp")
> disabled UCSI shortly after it had been enabled to fix a regression that
> was observed on the Lenovo ThinkPad X13s.
>
> Specifically, disconnecting an external display would trigger a system
> error and hypervisor reset but no one cared enough to track down the bug
> at the time.
>
> [...]
Applied, thanks!
[1/1] soc: qcom: pmic_glink: enable UCSI on sc8280xp
commit: 4d7ee0e277d4558ef025a5c4d6e1c7a8c8a1e68d
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-05-09 22:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-26 12:49 [PATCH] soc: qcom: pmic_glink: enable UCSI on sc8280xp Johan Hovold
2025-03-26 13:25 ` Konrad Dybcio
2025-03-26 14:34 ` Dmitry Baryshkov
2025-03-27 8:01 ` Abel Vesa
2025-05-09 22:13 ` Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox