Skip to content
Permalink
Browse files
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@gmail.com>
  • Loading branch information
tuxchetti authored and intel-lab-lkp committed Oct 17, 2021
1 parent 502408a commit b242c37ce924b13b53c953fd40aa8d67e95ec38b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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);

0 comments on commit b242c37

Please sign in to comment.