summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/imx8-ddrc.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-05-31 09:41:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-04 08:50:47 +0200
commit2dd002e928b8b933d1efce04bfebf9ed1adc0541 (patch)
tree1155216d034e94606af6b8caee5674bb43385297 /arch/arm/mach-imx/imx8-ddrc.c
parentc7936ef2c7b70f892c96f11fe318c4e1a7214d61 (diff)
downloadbarebox-2dd002e928b8b933d1efce04bfebf9ed1adc0541.tar.gz
barebox-2dd002e928b8b933d1efce04bfebf9ed1adc0541.tar.xz
ARM: imx8: fix discrepancy between comment and code
The comment speaks of a one second polling timeout, while the polling is indefinite with timeout not accounted for. Thus change the comment to reflect the actual behavior. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Acked-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/imx8-ddrc.c')
-rw-r--r--arch/arm/mach-imx/imx8-ddrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/imx8-ddrc.c b/arch/arm/mach-imx/imx8-ddrc.c
index 18454a9153..736865eb6f 100644
--- a/arch/arm/mach-imx/imx8-ddrc.c
+++ b/arch/arm/mach-imx/imx8-ddrc.c
@@ -29,7 +29,7 @@ static u32 ddrc_phy_get_message(void __iomem *phy, int type)
/*
* When BIT0 set to 0, the PMU has a message for the user
- * 10ms seems not enough for poll message, so use 1s here.
+ * Wait for it indefinitely.
*/
readl_poll_timeout(phy + DDRC_PHY_REG(0xd0004),
r, !(r & BIT(0)), 0);
@@ -104,4 +104,4 @@ void ddrc_phy_wait_training_complete(void __iomem *phy)
putc_ll('\r');
putc_ll('\n');
}
-} \ No newline at end of file
+}