From: Andrii Hatsuk <andrii2014hatsuk@gmail.com>
To: gregkh@linuxfoundation.org, mchehab@kernel.org
Cc: linux-staging@lists.linux.dev, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org,
Andrii Hatsuk <andrii2014hatsuk@gmail.com>
Subject: [PATCH] staging: media: av7110: replace msleep(10) with usleep_range()
Date: Thu, 3 Dec 2026 08:58:24 +0200 [thread overview]
Message-ID: <20261203065824.10020-1-andrii2014hatsuk@gmail.com> (raw)
msleep() for values under 20ms can sleep for up to 20ms.
Replace msleep(10) with usleep_range(10000, 11000) in the PLL lock
polling loop to ensure a more accurate delay, as suggested by
checkpatch.pl.
Signed-off-by: Andrii Hatsuk <andrii2014hatsuk@gmail.com>
---
drivers/staging/media/av7110/av7110.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/media/av7110/av7110.c b/drivers/staging/media/av7110/av7110.c
index 432404ece..8679d5cd7 100644
--- a/drivers/staging/media/av7110/av7110.c
+++ b/drivers/staging/media/av7110/av7110.c
@@ -1818,7 +1818,7 @@ static int nexusca_stv0297_tuner_set_params(struct dvb_frontend *fe)
if (i2c_transfer(&av7110->i2c_adap, &readmsg, 1) == 1)
if (data[0] & 0x40)
break;
- msleep(10);
+ usleep_range(10000, 11000);
}
return 0;
--
2.56.1
reply other threads:[~2026-12-03 6:58 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=20261203065824.10020-1-andrii2014hatsuk@gmail.com \
--to=andrii2014hatsuk@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
/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
all inboxes | Powered by JetHome®