public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Bergh <bergh.jonathan@gmail.com>
To: hdegoede@redhat.com
Cc: mchehab@kernel.org, linux-media@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Jonathan Bergh <bergh.jonathan@gmail.com>
Subject: [PATCH 3/3] staging: media: atomisp: Replace msleep call for less than 20ms with usleep_range
Date: Tue, 27 Feb 2024 17:30:43 +0100	[thread overview]
Message-ID: <20240227163043.112162-3-bergh.jonathan@gmail.com> (raw)
In-Reply-To: <20240227163043.112162-1-bergh.jonathan@gmail.com>

This patch makes the following change:
 * Replaces the call the msleep() to usleep_range() where msleep was used
   for a delay less than 20ms.

Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>
---
 drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
index cd00282b87b7..607453740dc9 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
@@ -594,7 +594,7 @@ static int atomisp_mrfld_power(struct atomisp_device *isp, bool enable)
 	} while (1);
 
 	if (enable)
-		msleep(10);
+		usleep_range(10000, 15000);
 
 	dev_err(isp->dev, "IUNIT power-%s timeout.\n", enable ? "on" : "off");
 	return -EBUSY;
-- 
2.40.1


  parent reply	other threads:[~2024-02-27 16:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-27 16:30 [PATCH 1/3] staging: media: atomisp: Fix various multiline block comment formatting instances Jonathan Bergh
2024-02-27 16:30 ` [PATCH 2/3] staging: media: atomisp: Remove extra whitespace after opening parentheses Jonathan Bergh
2024-02-27 16:30 ` Jonathan Bergh [this message]
2024-04-10 10:18 ` [PATCH 1/3] staging: media: atomisp: Fix various multiline block comment formatting instances Hans de Goede

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=20240227163043.112162-3-bergh.jonathan@gmail.com \
    --to=bergh.jonathan@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --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