]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: mt29f_spinand: Replace udelay function with usleep_range
authorEva Rachel Retuya <eraretuya@gmail.com>
Sat, 24 Oct 2015 17:24:51 +0000 (01:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 19:09:16 +0000 (04:09 +0900)
commitfa148158f5b72f32b0ab08ed5e375673799fbf0c
tree2640fe9df5d28164f4138f0d89f1cc3ff236f0f0
parenta53fad254a732f247f46e4603f371853941660d9
Staging: mt29f_spinand: Replace udelay function with usleep_range

Use 'usleep_range' instead of 'udelay' to elapse time. For
spinand_reset, define the upper limit by a factor of 2 to keep the wait
short while still allowing a "good enough" range for wakeup. Define the
range 250us - 1ms for spinand_cmdfunc to provide enough leeway before
issuing spinand_reset. Checkpatch found this issue.

CHECK: usleep_range is preferred over udelay; see
Documentation/timers/timers-howto.txt

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt29f_spinand/mt29f_spinand.c