[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <YWwWoB3+4HQTD4/t@Mononoke>
Date: Sun, 17 Oct 2021 14:27:12 +0200
From: Sebastian Luchetti <luchetti.linux@...il.com>
To: gregkh@...uxfoundation.org
Cc: linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: rts5208: ms.c: Remove two udelay calls and use
usleep_range instead
This patch fixes the issue:
CHECK: usleep_range is preferred over udelay; see
Documentation/timers/timers-howto.txt
in two occurrences.
Signed-off-by: Sebastian Luchetti <luchetti.linux@...il.com>
---
drivers/staging/rts5208/ms.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rts5208/ms.c b/drivers/staging/rts5208/ms.c
index 2a6fab5c117a..7292c8f013fd 100644
--- a/drivers/staging/rts5208/ms.c
+++ b/drivers/staging/rts5208/ms.c
@@ -3236,7 +3236,7 @@ static int ms_write_multiple_pages(struct rtsx_chip *chip, u16 old_blk,
return STATUS_FAIL;
}
- udelay(30);
+ usleep_range(27, 32);
rtsx_init_cmd(chip);
@@ -4158,7 +4158,7 @@ int mg_set_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip)
#ifdef MG_SET_ICV_SLOW
for (i = 0; i < 2; i++) {
- udelay(50);
+ usleep_range(47, 52);
rtsx_init_cmd(chip);
--
2.30.2
Powered by blists - more mailing lists