]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm: bridge: anx7625: correctly detect if PD can be disabled
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 11 Feb 2026 09:17:27 +0000 (11:17 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 11 Mar 2026 02:19:13 +0000 (04:19 +0200)
commit91d045058c68ab0ae133cd0bd8ed25a32c3dee97
tree2e5aabdbbb0b6721493ba261ad50be003548bbab
parent8e3d8b33859bb8229d1f0b88752cbecb4932790a
drm: bridge: anx7625: correctly detect if PD can be disabled

During initial checks the ANX7625 bridge can be powered on before
setting up the Type-C port. At this point, when
anx7625_ocm_loading_check() checks if it can disable PD or not, it will
notice that typec_port is not set and disable PD, breaking orientation
and HPD handling. Unify the check between anx7625_ocm_loading_check()
anx7625_i2c_probe() and anx7625_typec_register() and check for the
presence of the "connector" node.

Fixes: 8ad0f7d2e6fd ("drm: bridge: anx7625: implement message sending")
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Xin Ji <xji@analogixsemi.com>
Tested-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Link: https://patch.msgid.link/20260211-anx7625-fix-pd-v1-1-1dd31451b06f@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/bridge/analogix/anx7625.c