* [RFC] power: imx8m-power-domain: Add delay to align with kernel driver
@ 2023-04-28 19:52 Fabio Estevam
2023-05-06 15:26 ` Marek Vasut
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2023-04-28 19:52 UTC (permalink / raw)
To: h80.chung
Cc: u-boot, tharvey, aford173, marex, ye.li, peng.fan, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
In the imx8m power domain kernel driver, there is an extra udelay(5)
prior to requesting the domain to power up:
https://github.com/torvalds/linux/blob/v6.3/drivers/soc/imx/gpcv2.c#L347-L375
Haven't observed any issues due to the lack of this delay
in U-Boot, but better to align it with the driver implementation.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Marking it as RFC for now, to try to get some feedback first.
Thanks
drivers/power/domain/imx8m-power-domain.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c
index 145f6ec0cd32..df5d7d695621 100644
--- a/drivers/power/domain/imx8m-power-domain.c
+++ b/drivers/power/domain/imx8m-power-domain.c
@@ -338,6 +338,9 @@ static int imx8m_power_domain_on(struct power_domain *power_domain)
}
}
+ /* delay for reset to propagate */
+ udelay(5);
+
if (domain->bits.pxx) {
/* request the domain to power up */
setbits_le32(base + regs->pup, domain->bits.pxx);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC] power: imx8m-power-domain: Add delay to align with kernel driver
2023-04-28 19:52 [RFC] power: imx8m-power-domain: Add delay to align with kernel driver Fabio Estevam
@ 2023-05-06 15:26 ` Marek Vasut
0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2023-05-06 15:26 UTC (permalink / raw)
To: Fabio Estevam, h80.chung
Cc: u-boot, tharvey, aford173, ye.li, peng.fan, Fabio Estevam
On 4/28/23 21:52, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> In the imx8m power domain kernel driver, there is an extra udelay(5)
> prior to requesting the domain to power up:
>
> https://github.com/torvalds/linux/blob/v6.3/drivers/soc/imx/gpcv2.c#L347-L375
>
> Haven't observed any issues due to the lack of this delay
> in U-Boot, but better to align it with the driver implementation.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-05-06 15:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-28 19:52 [RFC] power: imx8m-power-domain: Add delay to align with kernel driver Fabio Estevam
2023-05-06 15:26 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox