From: Mayur Kumar <kmayur809@gmail.com>
To: miquel.raynal@bootlin.com, rafael@kernel.org,
daniel.lezcano@kernel.org, rui.zhang@intel.com,
lukasz.luba@arm.com
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Mayur Kumar <kmayur809@gmail.com>
Subject: [PATCH] thermal: armada: replace msleep with usleep_range for short durations
Date: Mon, 11 May 2026 21:07:50 +0530 [thread overview]
Message-ID: <20260511153750.183640-1-kmayur809@gmail.com> (raw)
The checkpatch tool warns that msleep(10) can sleep for up to 20ms.
According to Documentation/timers/timers-howto.rst, usleep_range()
should be used for delays between 1ms and 20ms to provide better
timing accuracy.
Replace the 10ms msleep with a 10ms-11ms usleep_range.
Signed-off-by: Mayur Kumar <kmayur809@gmail.com>
---
drivers/thermal/armada_thermal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c
index c2fbdb534f6..96965f393b4 100644
--- a/drivers/thermal/armada_thermal.c
+++ b/drivers/thermal/armada_thermal.c
@@ -178,7 +178,7 @@ static void armada370_init(struct platform_device *pdev,
regmap_write(priv->syscon, data->syscon_control1_off, reg);
- msleep(10);
+ usleep_range(10000, 11000);
}
static void armada375_init(struct platform_device *pdev,
--
2.34.1
reply other threads:[~2026-05-11 15:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260511153750.183640-1-kmayur809@gmail.com \
--to=kmayur809@gmail.com \
--cc=daniel.lezcano@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=miquel.raynal@bootlin.com \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox