* [PATCH] phy: phy-imx8mq-usb: Remove .exit operation
@ 2023-10-19 12:36 Fabio Estevam
2023-10-19 13:38 ` Marek Vasut
2023-12-13 16:28 ` Fabio Estevam
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2023-10-19 12:36 UTC (permalink / raw)
To: sbabic; +Cc: u-boot, aford173, marex, tharvey, peng.fan, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
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.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
drivers/phy/phy-imx8mq-usb.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/phy/phy-imx8mq-usb.c b/drivers/phy/phy-imx8mq-usb.c
index b660eadecf1c..e5e96e77a681 100644
--- a/drivers/phy/phy-imx8mq-usb.c
+++ b/drivers/phy/phy-imx8mq-usb.c
@@ -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)
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: phy-imx8mq-usb: Remove .exit operation
2023-10-19 12:36 [PATCH] phy: phy-imx8mq-usb: Remove .exit operation Fabio Estevam
@ 2023-10-19 13:38 ` Marek Vasut
2023-12-13 16:28 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2023-10-19 13:38 UTC (permalink / raw)
To: Fabio Estevam, sbabic; +Cc: u-boot, aford173, tharvey, peng.fan, Fabio Estevam
On 10/19/23 14:36, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> 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.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Indeed, makes sense.
Reviewed-by: Marek Vasut <marex@denx.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: phy-imx8mq-usb: Remove .exit operation
2023-10-19 12:36 [PATCH] phy: phy-imx8mq-usb: Remove .exit operation Fabio Estevam
2023-10-19 13:38 ` Marek Vasut
@ 2023-12-13 16:28 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2023-12-13 16:28 UTC (permalink / raw)
To: sbabic; +Cc: u-boot, aford173, marex, tharvey, peng.fan, Fabio Estevam
On Thu, Oct 19, 2023 at 9:36 AM Fabio Estevam <festevam@gmail.com> wrote:
>
> From: Fabio Estevam <festevam@denx.de>
>
> 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.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-13 16:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-19 12:36 [PATCH] phy: phy-imx8mq-usb: Remove .exit operation Fabio Estevam
2023-10-19 13:38 ` Marek Vasut
2023-12-13 16:28 ` Fabio Estevam
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.