Skip to contentSkip to conversation

phy: phy-imx8mq-usb: Remove .exit operation

PATCH In review Fabio Estevam 2 participants 3 messages Oct 19, 2023 – Dec 13, 2023

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 phy: phy-imx8mq-usb: Remove .exit operation

From: Fabio Estevam <[email protected]>

Currently, when running "ums 0 mmc 2" and breaking it via CTRL + C, the following message is seen:

u-boot=> ums 0 mmc 1
UMS: LUN 0, dev mmc 1, hwpart 0, sector 0x0, count 0x1dacc00 CTRL+C - Operation aborted
clk usb_phy_root_clk already disabled

The USB PHY clock is disabled twice: first it gets disabled inside imx8mq_usb_phy_power_off(), then it is disabled again inside imx8mq_usb_phy_exit().

Let the USB PHY clock be disabled only once inside imx8mq_usb_phy_power_off() by removing the .exit operation.

---
 drivers/phy/phy-imx8mq-usb.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/phy/phy-imx8mq-usb.c +0 -6
index b660eadecf1c..e5e96e77a681 100644
@@ -231,16 +231,10 @@ static int imx8mq_usb_phy_power_off(struct phy *usb_phy)
 	return 0;
 }
 
-static int imx8mq_usb_phy_exit(struct phy *usb_phy)
-{
-	return imx8mq_usb_phy_power_off(usb_phy);
-}
-
 struct phy_ops imx8mq_usb_phy_ops = {
 	.init = imx8mpq_usb_phy_init,
 	.power_on = imx8mq_usb_phy_power_on,
 	.power_off = imx8mq_usb_phy_power_off,
-	.exit = imx8mq_usb_phy_exit,
 };
 
 int imx8mq_usb_phy_probe(struct udevice *dev)
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Currently, when running "ums 0 mmc 2" and breaking it via CTRL + C, the following message is seen:

u-boot=> ums 0 mmc 1
UMS: LUN 0, dev mmc 1, hwpart 0, sector 0x0, count 0x1dacc00 CTRL+C - Operation aborted
clk usb_phy_root_clk already disabled

Quoted 8 lines

The USB PHY clock is disabled twice: first it gets disabled inside imx8mq_usb_phy_power_off(), then it is disabled again inside imx8mq_usb_phy_exit().

Let the USB PHY clock be disabled only once inside imx8mq_usb_phy_power_off() by removing the .exit operation.

Indeed, makes sense.

author reviewer
#2 lore raw
In reply to Fabio Estevam
Quoted 11 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Currently, when running "ums 0 mmc 2" and breaking it via CTRL + C, the following message is seen:

u-boot=> ums 0 mmc 1
UMS: LUN 0, dev mmc 1, hwpart 0, sector 0x0, count 0x1dacc00 CTRL+C - Operation aborted
clk usb_phy_root_clk already disabled

Quoted 8 lines

The USB PHY clock is disabled twice: first it gets disabled inside imx8mq_usb_phy_power_off(), then it is disabled again inside imx8mq_usb_phy_exit().

Let the USB PHY clock be disabled only once inside imx8mq_usb_phy_power_off() by removing the .exit operation.

Applied to u-boot-imx next, thanks.