Skip to contentSkip to conversation

checkpatch.pl: Ignore mdelay instead of udelay

PATCH In review Tom Rini 1 participant 2 messages Aug 27, 2025 – Sep 10, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 checkpatch.pl: Ignore mdelay instead of udelay

Whereas in Linux, on ARM there is the notion of delay operations and mdelay and udelay are not the same, here we just have udelay and mdelay is a trivial wrapper. Tell checkpatch to not complain here.

---
 .checkpatch.conf | 3 +++
 1 file changed, 3 insertions(+)
.checkpatch.conf +3 -0
index c368d4147260..0827f347f6e5 100644
@@ -19,6 +19,9 @@
 # Not Linux, so we don't recommend usleep_range() over udelay()
 --ignore USLEEP_RANGE
 
+# We also do not have a functionally different mdelay() and udelay()
+--ignore LONG_UDELAY
+
 # Ignore networking block comment style
 --ignore NETWORKING_BLOCK_COMMENT_STYLE
 
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

Whereas in Linux, on ARM there is the notion of delay operations and mdelay and udelay are not the same, here we just have udelay and mdelay is a trivial wrapper. Tell checkpatch to not complain here.

Applied to u-boot/next, thanks!

[1/1] checkpatch.pl: Ignore mdelay instead of udelay

      commit: 320d1d04eb52d5bf450e93a91788c2dcc9594de3
Signature · 1 line
Tom