lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240227163043.112162-3-bergh.jonathan@gmail.com>
Date: Tue, 27 Feb 2024 17:30:43 +0100
From: Jonathan Bergh <bergh.jonathan@...il.com>
To: hdegoede@...hat.com
Cc: mchehab@...nel.org,
	linux-media@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Jonathan Bergh <bergh.jonathan@...il.com>
Subject: [PATCH 3/3] staging: media: atomisp: Replace msleep call for less than 20ms with usleep_range

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@...il.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ