]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: fsl-imx8mq-usb: fix typec orientation switch when built as module
authorFranz Schnyder <franz.schnyder@toradex.com>
Wed, 26 Nov 2025 14:01:33 +0000 (15:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:26 +0000 (11:21 +0100)
commitb74edae2a0c7a234a50796e1eb6d4c01df2170d0
treebd5233c9df273e6cd91f8ecf9b8473bf8ed3ceab
parente26755512623ffc643ccb6bffc595417e2d1c587
phy: fsl-imx8mq-usb: fix typec orientation switch when built as module

commit 49ccab4bedd4779899246107dc19fb01c5b6fea3 upstream.

Currently, the PHY only registers the typec orientation switch when it
is built in. If the typec driver is built as a module, the switch
registration is skipped due to the preprocessor condition, causing
orientation detection to fail.

With commit
45fe729be9a6 ("usb: typec: Stub out typec_switch APIs when CONFIG_TYPEC=n")
the preprocessor condition is not needed anymore and the orientation
switch is correctly registered for both built-in and module builds.

Fixes: b58f0f86fd61 ("phy: fsl-imx8mq-usb: add tca function driver for imx95")
Cc: stable@vger.kernel.org
Suggested-by: Xu Yang <xu.yang_2@nxp.com>
Signed-off-by: Franz Schnyder <franz.schnyder@toradex.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://patch.msgid.link/20251126140136.1202241-1-fra.schnyder@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/freescale/phy-fsl-imx8mq-usb.c