]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_spi: Wait for USECS, not NSECS
authorBenson Leung <bleung@chromium.org>
Tue, 7 Apr 2020 21:36:06 +0000 (14:36 -0700)
committerBenson Leung <bleung@chromium.org>
Tue, 7 Apr 2020 21:42:08 +0000 (14:42 -0700)
commitd960b9e9b5c66bc8f7abacb6367a66604925c72f
treed9715839c6b7674ef729a464222f3734a1f29bca
parent9da948d0f9452af41f4ea7f3e1244c4f6867c0c3
platform/chrome: cros_ec_spi: Wait for USECS, not NSECS

The use of `delay_usecs` in terminate_request() was replaced with the new
`delay` struct used by the SPI subsystem, however the unit was
set to SPI_DELAY_UNIT_NSECS instead of SPI_DELAY_UNIT_USECS. This fixes that.

Fixes: 3fdb925b74de ("platform/chrome: cros_ec_spi: Use new structure for SPI transfer delays")
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_spi.c