Skip to contentSkip to conversation

phy: fsl-imx8mq-usb: set usb phy to be wakeup capable

PATCH Superseded Xu Yang 1 participant 2 messages Feb 2 – Mar 2

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Xu Yang

author
#0 lore raw

PATCH 1/1 phy: fsl-imx8mq-usb: set usb phy to be wakeup capable

USB remote wakeup need its PHY power domain to be active, so set PHY to be wakeup capable.

---
 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 958d114b0c83..50b67f1e6a90 100644
@@ -750,6 +750,7 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev)
 					"failed to get tca\n");
 
 	imx8m_get_phy_tuning_data(imx_phy);
+	device_set_wakeup_capable(dev, true);
 
 	phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
 
Signature · 1 line
2.34.1
author
#1 lore raw
Quoted 14 lines · Xu Yang

USB remote wakeup need its PHY power domain to be active, so set PHY to be wakeup capable.

---
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c +0 -0
index 958d114b0c83..50b67f1e6a90 100644

drivers/phy/freescale/phy-fsl-imx8mq-usb.c static int imx8mq_usb_phy_probe(struct platform_device *pdev) · line 756

Quoted 7 lines
drivers/phy/freescale/phy-fsl-imx8mq-usb.c +1 -0
@@ -750,6 +750,7 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev)
 					"failed to get tca\n");
 
 	imx8m_get_phy_tuning_data(imx_phy);
+	device_set_wakeup_capable(dev, true);
 
 	phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
 

Ping.