Skip to contentSkip to conversation

phy: fsl-imx8mq-usb: disable bind/unbind platform driver feature

PATCH Applied Xu Yang 3 participants 3 messages Jan 20 – Jan 21

Subsystems (2)
lore
Share & tools
lore

Xu Yang

author
#0 lore raw

PATCH 1/1 phy: fsl-imx8mq-usb: disable bind/unbind platform driver feature

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.

---
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c +1 -0
index 028c4c9dea40..abfa6ac3ae3f 100644
@@ -837,6 +837,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);
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Xu Yang

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.

---

Quoted 18 lines
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c +1 -1
index 028c4c9dea40..abfa6ac3ae3f 100644
@@ -837,6 +837,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);
--

2.34.1

maintainer Applied
#2 lore raw
In reply to Xu Yang
Quoted 6 lines · Xu Yang

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.

Applied, thanks!

[1/1] phy: fsl-imx8mq-usb: disable bind/unbind platform driver feature

      commit: 27ee0869d77b2cb404770ac49bdceae3aedf658b

Best regards,

Signature · 1 line
~Vinod