[PATCH 1/4] phy: qcom: qmp-combo: delay Type-C mux switch while DP PHY is initializing
Saurabh Anand
saurabh.anand at oss.qualcomm.com
Mon Sep 7 02:47:15 PDT 2026
On 02-09-2026 13:18, Manivannan Sadhasivam wrote:
> On Mon, Aug 24, 2026 at 04:58:04PM +0530, Saurabh Anand wrote:
>> The Type-C mux switch guard only checked dp_powered_on, which is set in
>> qmp_combo_dp_power_on(). However there is a race window between
>> qmp_combo_dp_init() and qmp_combo_dp_power_on() during which dp_init_count
>> is non-zero but dp_powered_on is still false. A Type-C orientation change
>> arriving in this window would proceed with the mux switch while the DP PHY
>> is mid-initialization, corrupting the PHY state.
>>
>> Extend the guard to also block the mux switch when dp_init_count is
>> non-zero, covering the full period from dp_init through dp_power_on.
>>
>> Signed-off-by: Saurabh Anand <saurabh.anand at oss.qualcomm.com>
> If this patch fixes a race condition, it should have a Fixes tag.
Sure, will add in next version.
Fixes: 896277138c13 ("phy: qcom: qmp-combo: register a typec mux to
change the QMPPHY_MODE")
>
> - Mani
More information about the linux-phy
mailing list