Hi Andy, write_reg8_bus8() calls par->fbtftops.write(), which in this driver resolves to write_spi(), which calls spi_sync(). Since spi_sync() requires sleepable context, write_reg8_bus8() is transitively guaranteed to run in non-atomic context, making fsleep() safe to use.
Best regards, Jose
