]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
phy: fsl-imx8mq-usb: disable bind/unbind platform driver feature
authorXu Yang <xu.yang_2@nxp.com>
Tue, 20 Jan 2026 11:17:12 +0000 (19:17 +0800)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:43 +0000 (07:20 -0500)
[ Upstream commit 27ee0869d77b2cb404770ac49bdceae3aedf658b ]

Disabling PHYs in runtime usually causes the client with external abort
exception or similar issue due to lack of API to notify clients about PHY
removal. This patch removes the possibility to unbind i.MX PHY drivers in
runtime.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260120111712.3159782-1-xu.yang_2@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/freescale/phy-fsl-imx8mq-usb.c

index 91b3e62743d3a94a1f95dc48e2c394dcdce06c7f..b30d01f345d204268b5737fc3698599929a6fc70 100644 (file)
@@ -730,6 +730,7 @@ static struct platform_driver imx8mq_usb_phy_driver = {
        .driver = {
                .name   = "imx8mq-usb-phy",
                .of_match_table = imx8mq_usb_phy_of_match,
+               .suppress_bind_attrs = true,
        }
 };
 module_platform_driver(imx8mq_usb_phy_driver);