Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: Replace custom fsleep() implementation

_spi_transfer_delay_ns() partially reimplements what fsleep() does.
Replace that code by calling fsleep() instead.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250205130624.716039-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
215705db 652ffad1

+1 -4
+1 -4
drivers/spi/spi.c
··· 1495 1495 } else { 1496 1496 u32 us = DIV_ROUND_UP(ns, NSEC_PER_USEC); 1497 1497 1498 - if (us <= 10) 1499 - udelay(us); 1500 - else 1501 - usleep_range(us, us + DIV_ROUND_UP(us, 10)); 1498 + fsleep(us); 1502 1499 } 1503 1500 } 1504 1501